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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file dolmen.app.security-0.1.tar.gz
.
File metadata
- Download URL: dolmen.app.security-0.1.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e57010f77980bc4b902ee2934393121f71bc76719708834b17560924664d678d |
|
MD5 | faf38e6c1f68c44ad47f46c245d8f308 |
|
BLAKE2b-256 | 95c121321866b84ab22f273809a5464c3359eb541682313cccff136faaa9f875 |