[Zope] XMLRPC returns error sometimes

Toby Dickenson tdickenson@geminidataloggers.com
Mon, 07 Aug 2000 10:28:00 +0100


On Sun, 6 Aug 2000 11:56:35 -0400 , Chris McDonough
<chrism@digicool.com> wrote:

>Only strings, integers, floats, "booleans", dictionaries, tuples, lists,
>and special "datetime", base64, and fault objects can be passed via
>XML-RPC.   Anything else is too complex.  The spec at
>http://www.xml-rpc.com/spec is useful.


Also, xmlrpclib will marshall a class instance as a dictionary, using
it's __dict__.

This applies to instances of python classes, but not extension
classes. Fixing this would be a bad idea: ObjectManager.objectItems
would try to return your whole database.

>> -----Original Message-----
>> From: Gijs Reulen [mailto:greulen@gilsing.nl]
>> Sent: Sunday, August 06, 2000 6:53 AM
>> To: zope@zope.org
>> Subject: [Zope] XMLRPC returns error sometimes
>> 
>> 
>> I am experimenting with xml-rpc and Zope. Some Methods from 
>> the API work ok,
>> but others return an error. A common error is:
>> 
>> Error Value: cannot marshal <extension class
>> Acquisition.ImplicitAcquirerWrapper at 00C950F0> objects
>> 
>> I receive this error for example when for Zope 2.1.6 I execute:
>> ObjectManager.objectValues
>> Where as the next Method works ok:
>> ObjectManager.objectItems
>> 
>> Maybe the to be returned info is to complex ?
>> 


Toby Dickenson
tdickenson@geminidataloggers.com