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 | RSS feed

This version

0.1

Download files

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

Source Distribution

dolmen.app.security-0.1.tar.gz (3.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page