[Zope-CMF] Setting local role programmatically
Dieter Maurer
dieter@handshake.de
Sun, 11 Aug 2002 19:39:39 +0200
Rainer Thaden writes:
> If it does, how do i set the local role 'manager' programmatically for
> an object? Which API?
I am too lazy to look this up for you. But you can proceed as
follows:
look at the ZMI (Zope Management Interface) sources that allow
you to view and change the local roles for an object
You will find 2 methods: one to read the current local role assignment
and one to change it.
The first one is used in the generation of the "Local role view" page,
the second is the "action" in the form on this page.
Dieter