Variable as qualifier

"Dando" <[email protected]>
Newsgroups gmane.comp.cms.opengroupware.xmlrpc.devel
Message-ID <[email protected]>
Hello,
I'm trying to put together some cgi's (written in python) for reporting purpose.
But i have some problem trying to pass a variable as argument in a method call to the XML-RPC
server.

Example:

#!/usr/bin/python

import xmlrpclib
import cgi

fields = cgi.FieldStorage()
LastName = fields["lastname"].value

server = xmlrpclib.Server('http://localhost:22000/RPC2',
login='<user>', password='<passwd>')

result = server.person.fetch(
{
'qualifier' : "name like '%s'" $ LastName,
'sortOrderings' : ["name",],
}
)

....

I tried different solutions without success, it seems that the Python interpreter didn't recognize
the variable placeholder.
How can i pass a variable as qualifier in a XML-RPC method call?

Thanks

Daniele Dal Re
[email protected]



-- 
OpenGroupware.org XML-RPC
[email protected]
http://mail.opengroupware.org/mailman/listinfo/xmlrpc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.