[Zope-CMF] Customised permissions
Charlie Clark
charlie at begeistert.org
Wed Jun 3 07:33:26 EDT 2009
Am 03.06.2009 um 13:05 schrieb Wichert Akkerman:
> Not if you use collective.autopermission.
In which it states:
# This is borrowed from Products.CMFCore to avoid a dependency.
Where it states
# XXX This ought to be in AccessControl.SecurityInfo.
:-/
It looks like I only need use_mailhost_services which I've hooked up
in like this
security = ModuleSecurityInfo('Products.CMFCore.permissions') <-
should this reflect my module?
security.declarePublic('UseMailHostServices')
UseMailHostServices = Permissions.use_mailhost_services
in a dedicated permissions module which I just include in the
configuration. Although I do like the event handling. Wouldn't it be
an idea to put this actually in the CMF?
I also noticed that the CMF permissions are actually declared in Five.
Is there a reason for this? Surely the CMF permission declarations
should be in CMFCore
Charlie
--
Charlie Clark
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-938-5360
GSM: +49-178-782-6226
More information about the Zope-CMF
mailing list