Copy/Paste from DTML w/ Proxy Roles
Hi there! I'm trying to copy a folder to another folder using a DTML-Method. The Problem is that this Method has to be run by Anonymous so I thought I might give it "Manager" as a proxy-role. But this does not work. Every time I call <dtml-call "manage_pasteObjects(manage_copyObjects(ids=['defaultFolder']))"> I get a security exception! What the ?(&" am I doing wrong?
Stadtverwaltung Schwarzenberg writes:
I'm trying to copy a folder to another folder using a DTML-Method. The Problem is that this Method has to be run by Anonymous so I thought I might give it "Manager" as a proxy-role. But this does not work. Every time I call <dtml-call "manage_pasteObjects(manage_copyObjects(ids=['defaultFolder']))"> I get a security exception!
What the ?(&" am I doing wrong? Nothing! A bug in "manage_pasteObjects". It does not take execution security into account, such as proxy roles.
Dieter
On Wednesday 17 April 2002 09:46, Stadtverwaltung Schwarzenberg wrote:
Hi there!
I'm trying to copy a folder to another folder using a DTML-Method. The Problem is that this Method has to be run by Anonymous so I thought I might give it "Manager" as a proxy-role. But this does not work. Every time I call <dtml-call "manage_pasteObjects(manage_copyObjects(ids=['defaultFolder']))"> I get a security exception!
Have you looked at manage_clone() ?? search Zope Book/zope.org/mailinglist Perhaps it's better than manage_pasteObjects()
participants (3)
-
Dieter Maurer -
Peter Bengtsson -
Stadtverwaltung Schwarzenberg