Danny William Adair writes:
 > I want to set the roles of a permission and turn acquisition of a permission
 > (mapping) on and off programmatically. And of course I want to get a
 > permission by its name. This looks definitely more complex than simply
 > changing an object's property!
My standard response to questions like this:

  You know, you can do this via the Management Interface.

  Its code will tell you, how you can do it: the necessary
  method names and their parameters.
  After you know the names, you look for further documentation:
  the Zope Help, maybe the new Zope Developer Guide,
  the source.

  The source for the updating of permissions is
  "AccessControl/dtml/access.dtml".
  The methods are defined in various Python files
  in "AccessControl".


Dieter

_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to