I 'd like to know how to change permissions in DTML : I have a method what create a file with a selected uploaded PDF file, and I want to give to Anonymous the View permission for the created file. thanx. sbaline () / \ | <> | (____) zazen rules ... _______________________________________________________ Send a cool gift with your E-Card http://www.bluemountain.com/giftcenter/
By default a file object will acquire permissions from its container. So you can upload the PDF into a folder where Anonymous has the right to view. Cheers. -- Andy McKay. ----- Original Message ----- From: "Sebal" <sbaline@excite.com> To: <zope@zope.org> Sent: Wednesday, June 20, 2001 7:22 AM Subject: [Zope] change permissions
I 'd like to know how to change permissions in DTML : I have a method what create a file with a selected uploaded PDF file, and I want to give to Anonymous the View permission for the created file.
thanx. sbaline
() / \ | <> | (____) zazen rules ...
_______________________________________________________ Send a cool gift with your E-Card http://www.bluemountain.com/giftcenter/
_______________________________________________ Zope maillist - Zope@zope.org 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 )
Sebal writes:
I 'd like to know how to change permissions in DTML : I have a method what create a file with a selected uploaded PDF file, and I want to give to Anonymous the View permission for the created file. You use "manage_changePermissions".
It is a difficult method with difficult parameters. I do not know a documentation for it... But looking at "AccessControl/dtml/access.dtml" (main use instance) and "AccessControl.Role.RoleManager.manage_changePermissions" (the source) you should be able to find out, how to do it. "RoleManager" may have other usefull methods for your task. Dieter
participants (3)
-
Andy McKay -
Dieter Maurer -
Sebal