|
|
Choosing A Webhost: |
Variable as qualifier: msg#00002cms.opengroupware.xmlrpc.devel
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 dando@xxxxxxxx -- OpenGroupware.org XML-RPC xmlrpc@xxxxxxxxxxxxxxxxx http://mail.opengroupware.org/mailman/listinfo/xmlrpc
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Daemon won't start, Helge Hess |
|---|---|
| Next by Date: | Re: Variable as qualifier, Helge Hess |
| Previous by Thread: | Daemon won't start, Juergen Lang |
| Next by Thread: | Re: Variable as qualifier, Helge Hess |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |