xml-rpc and zope help

sanjay sanjay2kind at yahoo.com
Thu Feb 6 16:05:21 CET 2003


Hi All,

  Working on zope 2.5, xml-rpc. How to get all folder object from
another zope server. I tried like following using external method,
shows error.
Example has been published in
http://www.xml.com/pub/a/2000/01/xmlrpc/index2.html

f=xmlrpclib.Server('http://localhost:8080',xmlrpclib.BasicAuthTransport('myusername','mypassword'))

print f.objectIds()
print f.objectValues()

error
------
Fault: <Fault -2: 'Unexpected Zope error value: <TABLE BORDER="0"
WIDTH="100%">\n<TR VALIGN="TOP">\n\n<TD WIDTH="10%"
ALIGN="CENTER">\n&nbsp;\n</TD>\n\n<TD WIDTH="90%">\n  <H2>Site
Error</H2>\n  <P>An error was encountered while publishing this
resource.\n  </P>\n  <P><STRONG>Debugging Notice</STRONG></P>\n  \n 
Zope has encountered a problem publishing your object.<p>\nThe object
at http://localhost:8080/RPC2/objectIds has an empty or missing
docstring. Objects must have a docstring to be published.\n  <HR
NOSHADE>\n\n  <P>Troubleshooting Suggestions</P>\n\n  <UL>\n  <LI>The
URL may be incorrect.</LI>\n  <LI>The parameters passed to this
resource may be incorrect.</LI>\n  <LI>A resource that this resource
relies on may be\n      encountering an error.</LI>\n  </UL>\n\n 
<P>For more detailed information about the error, please\n  refer to
the HTML source for this page.\n  </P>\n\n  <P>If the error persists
please contact the site maintainer.\n  Thank you for your patience.\n 
</P>\n</TD></TR>\n</TABLE>'>

Regards,
Sanjay




More information about the Python-list mailing list