Re: [Zope-dev] manage_permission from script

2004-04-08 Thread Erik A . Dahl
Thanks for the suggestion but no joy here. Here is the full trace... Python 2.3.3 (#1, Jan 27 2004, 09:17:28) [GCC 3.2 20020903 (Red Hat Linux 8.0 3.2-7)] on linux2 Type help, copyright, credits or license for more information. import Zope app = Zope.app() app.testfolder Folder instance at

RE: [Zope-dev] manage_permission from script

2004-04-07 Thread zope
For setting permission on the root application object, use setPermissionDefault of SecurityInfo. e.g. in your product: class MyClass: security = ClassSecurityInfo() security.setPermissionDefault(Permissions.view, ('Owner',)) Reagrds, Sandor -Original Message- From: [EMAIL

RE: [Zope-dev] manage_permission from script

2004-04-07 Thread zope
For setting permission on the root application object, use setPermissionDefault of SecurityInfo. Eh, this only works for my own defined permissions. However I just tried this from my product and it does what it supposed to do: self.getPhysicalRoot().manage_permission('View', ['Owner'])