What does view_sql() return? xml-rpc only knows how to marshal simple things like strings, dicts. It looks like its trying to marshal an Extension Class. Cheers. -- Andy McKay. ----- Original Message ----- From: "Steve Drees" <drees@the-bridge.net> To: "Zope@Zope. Org" <zope@zope.org> Sent: Wednesday, May 23, 2001 8:41 AM Subject: [Zope] xml-rpc marshal problems
Playing with xml-rpc a little and I'm confused.
view_sql is a zsql in the root of htpp://steve.wejustrock.com
[drees@gfa drees]$ python Python 1.5.2 (#1, Dec 21 2000, 15:29:08) [GCC egcs-2.91.66 19990314/Linux (egcs- on linux-i386 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
import xmlrpclib s= xmlrpclib.Server('http://steve.wejustrock.com') for i in s.view_sql(): ... print i.entry_title ... Traceback (innermost last): File "<stdin>", line 1, in ? File "/usr/lib/python1.5/site-packages/xmlrpclib.py", line 608, in __call__ return self.__send(self.__name, args) File "/usr/lib/python1.5/site-packages/xmlrpclib.py", line 658, in __request self.__password File "/usr/lib/python1.5/site-packages/xmlrpclib.py", line 575, in request return self.parse_response(fd) File "/usr/lib/python1.5/site-packages/xmlrpclib.py", line 590, in parse_response return u.close() File "/usr/lib/python1.5/site-packages/xmlrpclib.py", line 346, in close raise apply(Fault, (), self._stack[0]) xmlrpclib.Fault: <Fault -1: 'Unexpected Zope exception: cannot marshal <extension class ExtensionClass at 401529cc> objects'>
Desperately seeking zen, Steve
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )