[Zope] calling PythonScript on another machine

Andy McKay andy@agmweb.ca
Wed, 28 Aug 2002 13:03:34 -0700


> Could you do this by using httplib and urllib in an external script:

...or use xmlrpc, heres how to call a Python Script named "search_xml" on
"zopezen.org"...

from xmlrpclib import Server
srv = Server('http://www.zopezen.org/')
results = srv.search_xml('Zope')
results['results'][0]
--
  Andy McKay
  Agmweb Consulting
  http://www.agmweb.ca