[Zope] Re: Programmatically setting default perms for products

Josef Meile jmeile at hotmail.com
Fri Feb 4 10:49:50 EST 2005


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


More information about the Zope mailing list