[Zope] add role to user (using API)

Chris Withers chris at simplistix.co.uk
Mon Mar 28 02:41:55 EST 2005


Jens Vagelpohl wrote:
>     def setLocalRoles(obj, member_ids, member_role, reindex=1):
>         """ Add local roles on an item.
> 
>         Permission -- Always available
>         """
> 
> You pass in the object (folder, content object, etc) you want to set 
> local roles on, a sequence of member IDs, and the role name.

Maybe it should be made clear that the role needs to exist, and that 
setLocalRoles doesn't check that this is the case?

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk


More information about the Zope mailing list