[OGo-XML-RPC] Multiple Qualifiers

Adam Tauno Williams xmlrpc@opengroupware.org
Tue, 06 Jun 2006 22:18:29 -0400


> > Is it possible have multiple qualifiers in the fetch spec for an
> > enterprise or contact fetch operation?
> Unfortunately, no. More exactly, the backend is a command like  
> "company::search" which takes a simple dictionary (aka Map aka  
> Hashtable) plus an operation (AND/OR) as arguments.
> So you can only specify one operation per search and only one value  
> per key, eg:
> operation = AND
> search-dict = {
>    firstname = 'blub';
>    name      = 'murks*';
> }
> Yup, this sucks, but its the way it is right now ... 

Actually, this would be fine, if I could get it to work. :)

result = server.person.fetch(
	{
		'operation' : 'AND',
		'search-dict' : {
			'firstname' : 'steve',
			'name' : 'berns'
			},
		'sortOrderings' : ["name",],
	}

Doesn't work.

Neither does -
result = server.person.fetch(
	{
		'operation' : 'AND',
		'search-dict' : [
			'firstname = steve',
			'name = berns',
			],
		'sortOrderings' : ["name",],
	}
)