[Zope] Py script and manage_pasteObjects permission

vsbabu@vsbabu.org vsbabu@vsbabu.org
Wed, 1 May 2002 19:03:19 -0500


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