[Zope] Problem with xmlrpc and manage_pasteObjects

Phil Harris phil.harris@zope.co.uk
Thu, 19 Apr 2001 23:15:06 +0100


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=F1a" <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 =3D 'pepe'
>
>     context.tmp.manage_addProduct['OFSP'].addDTMLDocument(id, title=3D"=
",
> file=3D'esto es una prueba')
>     doctmp =3D getattr(context.tmp, id)
>     doctmp.manage_addProperty('sender', 'loginName', 'string')
>     doctmp.manage_addProperty('sessionId', 'session', 'string')
>
>
>     # move the message to the queue
>     obj =3D context.tmp.manage_cutObjects(ids=3D[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 )