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 details)

Uploaded Source

File details

Details for the file dolmen.app.security-0.1.tar.gz.

File metadata

File hashes

Hashes for dolmen.app.security-0.1.tar.gz
Algorithm Hash digest
SHA256 e57010f77980bc4b902ee2934393121f71bc76719708834b17560924664d678d
MD5 faf38e6c1f68c44ad47f46c245d8f308
BLAKE2b-256 95c121321866b84ab22f273809a5464c3359eb541682313cccff136faaa9f875

See more details on using hashes here.

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