Skip to main content

Dolmen application security declarations

Project description

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

Project details


Release history Release notifications

This version
History Node

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
dolmen.app.security-0.1.tar.gz (3.3 kB) Copy SHA256 hash SHA256 Source None Oct 27, 2009

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page