Re: [Zope] manage_addFolder unusable from DTML-call?
Kyler B. Laird writes:
I have a simple DTML method: .... <dtml-call "manage_addFolder('Folder', 'my new folder')"> .... .... I can go through the management interface to create and destroy folders, but as soon as I view this method, (it tries to reauthenticate me and) I get: Zope Error
Zope has encountered an error while publishing this resource.
Unauthorized When I tried to reproduce your problem (ZopeCVS rather than Zope 2.2.4b1), everything worked as it should -- no Unauthorized exception.
Dieter
On Sun, 26 Nov 2000 23:22:17 +0100 (CET) you wrote:
When I tried to reproduce your problem (ZopeCVS rather than Zope 2.2.4b1), everything worked as it should -- no Unauthorized exception.
Indeed, it works for me using a simple CVS version too. Thank you. --kyler
<dtml-call "manage_addFolder('Folder', 'my new folder')">
Unauthorized
I finally got to the bottom of this. I was running into a ZopeSecurityPolicy problem. It wanted to check the roles of the owner of the executable, but I had deleted the root user folder when I created a Login Manager in the root folder. I was doing some strange things for testing, but now I know better. Thank you for the help. --kyler
participants (2)
-
Dieter Maurer -
Kyler B. Laird