[Zope] XML-RPC woes

Tony McDonald tony.mcdonald@ncl.ac.uk
Fri, 11 Feb 2000 15:25:12 +0000


At 2:44 pm +0000 11/2/00, Phil Harris wrote:
>Tone,
>
>Is the page 'really' blank, have a look at the source.
>
>It maybe that the Python Method is returning a reference to an object, which
>would look something like
>
><blah blah blah>
>
>Which of course wouldn't get rendered by the browser.
>
>HTH
>
>Phil

Cheers Phil,
However "on closer examination" of the Zope-Dev list! :) I found a 
clue, I should use this construct;
<params>number</params>
def doit(number):
     import xmlrpclib
     server_url="http://xmlrpc.server:9999"
     server=xmlrpclib.Server(server_url)
     return server.getTranscript(number)

print doit(number)
return printed

I couldn't find 'printed' in any file in the PythonMethods docs or 
.py files, but it was in the 'Voodoo area' (ie the zbytecodehacks 
directory...deep deep python).

Getting there!

Cheers
tone.
------
Dr Tony McDonald,  FMCC, Networked Learning Environments Project 
http://nle.ncl.ac.uk/
The Medical School, Newcastle University Tel: +44 191 222 5888
Fingerprint: 3450 876D FA41 B926 D3DD  F8C3 F2D0 C3B9 8B38 18A2