[OGo-Users] advanced search for extended company attributes
not working?
Adam Tauno Williams
users@opengroupware.org
Fri, 30 May 2008 08:37:57 -0400
> is it just me, or does the search for extended attributes not work as it
> should? I defined some extended attributes for companies, and some for
> persons. I have no problem to search and find contacts based on these
> extended attributes, but it doesn't seem to work for companies.
> does someone can confirm that it is working for him?
> I have a two or three month old -trunk version of ogo installed.
At least on the r2110 it works via zOGI -
#!/usr/bin/env python
import xmlrpclib,pprint
server = xmlrpclib.Server('http://.....')
criteria1 = { }
criteria1['conjunction'] = 'OR'
criteria1['key'] = 'email2'
criteria1['value'] = '%handling%'
criteria1['expression'] = 'ILIKE'
query = [ criteria1, ]
flags = { 'limit' : 150,
'revolve': 'NO' }
result = server.zogi.searchForObjects('Enterprise', query, 0, flags)
for enterprise in result:
print 'Enterprise#%d : %s' % (enterprise['objectId'],
enterprise['name'])
If it was broke I'm pretty sure I'd hear about it from my users pretty
quick! :)