skip to navigation
skip to content

ztfy.security 0.2.4

ZTFY package used to add wrapper around Zope security

Downloads ↓

Latest Version: 0.2.5

What is ztfy.security ?

ztfy.security is a thin wrapper around zope.security and zope.securitypolicy packages.

It provides an adapter to ISecurityManager interfaces, which allows you to get and set roles and permissions applied to a given principal on a given adapted context.

This adapter also allows you to fire events when a role is granted or revoked to a given principal ; this functionality can be useful, for example, when you want to forbid removal of a 'contributor' role to a principal when he already owns a set of contents.

Finally, ztfy.security provides a small set of schema fields, which can be used when you want to define a field as a principal id or as a list of principals ids.

How to use ztfy.security ?

ztfy.security package usage is described via doctests in ztfy/security/doctests/README.txt

Changelog

0.2.4

  • added check in JSON's "getAddr()" method to remove "++skin++" namespace
  • corrected syntax and translation in MissingPrincipal class

0.2.3

  • added permission grant, unset and revoke methods in ISecurityManager interface and adapter
  • added check in principals widgets

0.2.2

  • switched resources management from zc.resourcelibrary to fanstatic

0.2.1

  • removed "zope.app" packages dependencies

0.2

  • Switched to ZTK-1.1.2
  • Added schema fields, properties, widgets and resources to handle roles assignment via simple context attributes and properties
  • Added IAuthenticatorSearchAdapter to offer a common search interface to authenticator plug-ins

0.1

  • Initial release
 
File Type Py Version Uploaded on Size # downloads
ztfy.security-0.2.4-py2.6.egg (md5) Python Egg 2.6 2012-02-04 50KB 175
ztfy.security-0.2.4.tar.gz (md5) Source 2012-02-04 19KB 168