[Zope-CMF] Customised permissions
Charlie Clark
charlie at begeistert.org
Wed Jun 3 03:58:56 EDT 2009
Hi,
this should be a no-brainer but apart from a recent discussion on the
death of local permissions I can't much on it - how do I use custom
permissions?
I've added them in to zcml but they don't crop up in the security
interfaces and, surprise, surprise, I get an error when I try and
import a role map that uses them.
<permission
id="charlie.can do everything"
title="Only rulerz can have this permission
/>
Do I need additional Python calls to the security modules to register
this? I'm not quite sure if the setDefaultRoles() in
CMFCore.permissions does this or not.
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