manage_clone problem, python script solution required please
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>
Nicolas LAURANCE wrote:
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>
Looks like your users don't have permission to access the object being copied, I wonder how that can be?
It seems (thank you Dieter) that this is a know bug
Which bug? (url to collector entry please ;-) cheers, Chris
participants (2)
-
Chris Withers -
Nicolas LAURANCE