[Zope] Problem with xmlrpc and manage_pasteObjects
Chris McDonough
chrism@digicool.com
Thu, 19 Apr 2001 18:02:48 -0400
This works from the management interface?
----- Original Message -----
From: "Juan Carlos Coruņa" <jcoruna@euskalnet.net>
To: <zope@zope.org>
Sent: Thursday, April 19, 2001 5: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 )
>