On Wednesday 29 May 2002 3:24 pm, Joachim Schmitz wrote: > Hi, > > I want to acces a ZCatalog via xmlrpc, but > > server=xmlrpclib.Server("http://myserver.aixtraware.de" > ,BasicAuthTransport(username="user",password="pw")) > r = server.Catalog() > > results in > > <Fault -1: "Unexpected Zope exception: cannot marshal <type 'IOBTreeItems'> > objects"> > > What is to do, to enable marshalling of those types ?
You could hack xmlrpclib to marshall those object, but I dont recommend it. Those objects can be big (but lazily evaluated), and you would be opening a significant denial of service vulnerability in your server. I suggest you create a method (Python Script?) that makes the catalog query, sanitizes the response by making sure it is not too big, and returns a vanilla list or dictionary _______________________________________________ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )