Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: CMF
Customised permissions
 

Index | Next | Previous | View Flat


charlie at begeistert

Jun 3, 2009, 12:58 AM


Views: 465
Permalink
Customised permissions

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



_______________________________________________
Zope-CMF maillist - Zope-CMF[at]lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests

Subject User Time
Customised permissions charlie at begeistert Jun 3, 2009, 12:58 AM
    Re: Customised permissions wichert at wiggy Jun 3, 2009, 4:05 AM
        Re: Customised permissions charlie at begeistert Jun 3, 2009, 4:33 AM
    Re: Customised permissions optilude+lists at gmail Jun 3, 2009, 6:47 AM
        Re: Customised permissions charlie at begeistert Jun 3, 2009, 7:56 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.