[Zope] Py script and manage_pasteObjects permission

Maik Jablonski maik.jablonski@uni-bielefeld.de
Thu, 02 May 2002 10:55:50 +0200


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