Py script and manage_pasteObjects permission
Hello, I've a script that goes like #archiveit ids=['001','002'] return container.archives.manage_pasteObjects(context.manage_copyObjects(ids)) archives is a subfolder. Requirement is to copy some objects into a sub folder. Works pretty well from ZMI. I need this to work without authentication 'coz this is going to be called from another system over http (http://myzope:8080/mydata/archiveit). Even if I give Manager, Owner and Authenticated roles for the script, it asks for authentication. The error is like "you don't have permissions to run manage_pasteObjects in this context" I'm on Zope 2.5.0 on WinNT4. Any hints/help will be appreciated Thanks -vsb vsbabu at vsbabu dot org
vsbabu@vsbabu.org wrote:
Hello,
I've a script that goes like
#archiveit ids=['001','002'] return container.archives.manage_pasteObjects(context.manage_copyObjects(ids))
archives is a subfolder. Requirement is to copy some objects into a sub folder. Works pretty well from ZMI.
I need this to work without authentication 'coz this is going to be called from another system over http (http://myzope:8080/mydata/archiveit). Even if I give Manager, Owner and Authenticated roles for the script, it asks for authentication. The error is like "you don't have permissions to run manage_pasteObjects in this context"
I'm on Zope 2.5.0 on WinNT4.
Any hints/help will be appreciated
hi, if I remember right, there's a bug in manage_pasteObjects that leads to the described behaviour. maybe you should try: manage_clone. greetings, maik. -- maik jablonski http://www.sachunterricht-online.de universitaet bielefeld http://www.zfl.uni-bielefeld.de zentrum fuer lehrerbildung tlph://+49.(0).521.106.4234
participants (2)
-
Maik Jablonski -
vsbabuļ¼ vsbabu.org