Carlos, I'm pretty sure that the cut/copy/paste functionality needs cookies to do the work. xmlrpc doesn't as yet support cookie, so there is a problem there. Hope that helps. Phil ----- Original Message ----- From: "Juan Carlos Coruña" <jcoruna@euskalnet.net> To: <zope@zope.org> Sent: Thursday, April 19, 2001 10:35 PM Subject: [Zope] Problem with xmlrpc and manage_pasteObjects
I have another xmlrpc replated problem:
If I test the following script (python) with the Zope management interface it works ok, but if I call the script from outside Zope using xmlrpc I become an Fault error:
xmlrpclib.Fault: <Fault -2: 'Unexpected Zope error value: Add Documents, Images, and Files'>
This is the script:
# Create a unique document id id = 'pepe'
context.tmp.manage_addProduct['OFSP'].addDTMLDocument(id, title="", file='esto es una prueba') doctmp = getattr(context.tmp, id) doctmp.manage_addProperty('sender', 'loginName', 'string') doctmp.manage_addProperty('sessionId', 'session', 'string')
# move the message to the queue obj = context.tmp.manage_cutObjects(ids=[id]) context.manage_pasteObjects(obj)
return id
If I comment the line "context.manage_pasteObjects(obj)" Zope doesn't produce the error response.
Is there a limitations using manage_pasteObjects with xmlrpc? Any solutions?
_______________________________________________ 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 )