Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install dolmen.app.security

How to install dolmen.app.security

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install dolmen.app.security
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.1 Available View build log
Windows (64-bit)
0.1 Available View build log
Mac OS X (10.5+)
0.1 Available View build log
Linux (32-bit)
0.1 Available View build log
Linux (64-bit)
0.1 Available View build log
 
License
GPL
Lastest release
version 0.1 on Jan 5th, 2011

dolmen.app.security is a package providing a collection of basic roles and permissions for a Dolmen application.

>>> import dolmen.app.security
>>> from dolmen.app.security import IDolmenSecurity
>>> from dolmen.app.security.roles import IDolmenRoles
>>> from dolmen.app.security.content import IContentPermissions
>>> IDolmenSecurity.extends(IDolmenRoles)
True
>>> IDolmenSecurity.extends(IContentPermissions)
True
>>> IDolmenSecurity.providedBy(dolmen.app.security)
True

Content centric permissions

>>> import dolmen.app.security.content
>>> IContentPermissions.providedBy(dolmen.app.security.content)
True
>>> for name, attr in IContentPermissions.namesAndDescriptions():
...   print "%s: %s" % (name, attr.getDoc())
CanEditContent: Edit content.
CanAddContent: Add content.
CanListContent: List the container content.
CanDeleteContent: Delete content.
CanReviewContent: Review and annotate content.
CanCopyContent: Copy content to the clipboard.
CanPasteContent: Paste content from the clipboard.
CanViewContent: View content.

Dolmen application roles

>>> import dolmen.app.security.roles
>>> IDolmenRoles.providedBy(dolmen.app.security.roles)
True
>>> for name, attr in IDolmenRoles.namesAndDescriptions():
...   print "%s: %s" % (name, attr.getDoc())
Member: A basic member.
Contributor: A content contributor.
Owner: The owner of an object.
Reviewer: A content reviewer.

Changelog

0.1 (2009-10-27)
  • Initial release

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.