[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Zope] 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


_______________________________________________
Zope maillist  -  Zope@xxxxxxxx
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 )



This mailing list archive is a service of Copilotco.