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

Re: [Zope] Py script and manage_pasteObjects permission


vsbabu@xxxxxxxxxx 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



_______________________________________________
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.