Hello ... I am writing a disk-based product, and while I've set what permissions are required for various tasks using __ac_permissions__, what I really would like to do at this point is describe a set of default permissions for a newly created instance of my product (for instance, I want to set certain folders contained within to *not* acquire permissions, I'd like to set certain things to requrie authorized/owner/etc permissions, etc). I've looked around (perhaps I'm not asking the write questions to google and such) and have yet to find something that describes this. I'm assuming this is possible (perhaps it isn't, and that's why I can't find anything) - any hints? Thanks -J
Hi Jeff,
I am writing a disk-based product, and while I've set what permissions are required for various tasks using __ac_permissions__, what I really would like to do at this point is describe a set of default permissions for a newly created instance of my product (for instance, I want to set certain folders contained within to *not* acquire permissions, I'd like to set certain things to requrie authorized/owner/etc permissions, etc). yourObject.manage_permission(yourPermission,rolesList)
ie: fooObject.manage_permission('View',['Manager','yourRole']) fooObject.manage_permission('Change fooProduct',['Manager','yourRole']) Regards, Josef
On Fri, 4 Feb 2005, Josef Meile wrote:
yourObject.manage_permission(yourPermission,rolesList) ie: fooObject.manage_permission('View',['Manager','yourRole']) fooObject.manage_permission('Change fooProduct',['Manager','yourRole'])
Thanks much. While still just going through the introduction, in pure ironic style I managed to come across something which looks like it has all sorts of answers to these questions immediately after I sent that out (after spending the better part of yesterday looking through search engines and such) in this URL: http://dev.zope.org/Wikis/DevSite/Projects/DeclarativeSecurity/ZopeSecurityF...
participants (2)
-
Jeff Gentry -
Josef Meile