[Zope-CMF] Permissions in Document class

Dieter Maurer dieter@handshake.de
Thu, 29 Aug 2002 20:15:37 +0200


Jeff Ross writes:
 > The problem is, this permission doesn't show up in Document objects. There
 > is a very limited set of permissions that show up for document objects and
 > I'm wondering why. How can I get "Reference in NFGnav" to show up in the
 > Document object?
They need to be declared somewhere:

  The old (still working) method:

    Include an "__ac_permissions__" assignment in one of your classes.
    Its value is a sequence of pairs: permission, sequence of default roles.

  Nowadays, there may be a method (of 'AccessControl.ClassSecurityInfo')
  to the same effect.

  Consult the Zope Developer Guide for details.


Dieter