[Zope] manage_clone problem, python script solution required please

Webmaster Expert RH webmaster at expert-rh.com
Wed Aug 27 13:17:33 EDT 2003


Hi zopers,

Here is part of my script

container.dest_folder.manage_clone(Item, Item.id)
container.temp.manage_delObjects(Item.id)

It works perfectly well for me when I'm logged in as manager, but my users
get an error (prompted for password again)

In the zope log I get :
Module OFS.CopySupport, line 268, in manage_clone 
Module OFS.CopySupport, line 349, in _verifyObjectPaste 
Unauthorized: <zExceptions.unauthorized.Unauthorized instance at 0x8e83bec> 

It seems (thank you Dieter) that this is a know bug

In searching the archives I found a solution with external method.
Unfortunately, my configuration doesn't allow me to use those easily. I must
find a workaround in python_script only.

Of course I have set the proxy role of the script to 'Manager'

I even tried
container.dest_folder.manage_pasteObjects(container.temp.manage_copyObjects(
Item.id))
container.temp.manage_delObjects(Candidat.id)

In the zope log I get :
Module OFS.CopySupport, line 146, in manage_pasteObjects 
Module OFS.CopySupport, line 349, in _verifyObjectPaste 
Unauthorized: <zExceptions.unauthorized.Unauthorized instance at 0x946862c> 




More information about the Zope mailing list