Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

pypm install ztfy.security

How to install ztfy.security

  1. Download and install ActivePython
  2. Buy and install the Business Edition license from account.activestate.com
  3. Open Command Prompt
  4. Type pypm install ztfy.security

ztfy.security contains builds that are only available via PyPM when you have a current ActivePython Business Edition subscription.

 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.1 Available View build log
Windows (64-bit)
0.1 Available View build log
Mac OS X (10.5+)
0.1 Available View build log
Linux (32-bit)
0.1 Available View build log
Linux (64-bit)
0.1 Available View build log

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


  • added "names" argument in principals search methods which allows to provide names of authentication plug-ins in which principals are to be searched
  • add "auth_plugins" property to principals selection widgets to define names of authentication plug-ins which can be used in search method
  • use ZTFY.skin data API
  • remove unused resources
  • disable auto-completion on roles input widgets
  • convert roles edit form to dialog
  • use request cache in "getPrincipal()" function
  • corrected ISecurityManager methods arguments names
  • templates updated to display null values
  • changed package source layout
  • added ILocalRoleIndexer interface and default adapter
  • added annotations interfaces on standard zope.pluggableauth GroupFolder class
  • escape quotes in Javascript code
  • updated imports for last ztfy.jqueryui and ztfy.skin package
  • added AJAX checks in principals widgets
  • added check in JSON's "getAddr()" method to remove "++skin++" namespace
  • corrected syntax and translation in MissingPrincipal class
  • added permission grant, unset and revoke methods in ISecurityManager interface and adapter
  • added check in principals widgets
  • switched resources management from zc.resourcelibrary to fanstatic
  • removed "zope.app" packages dependencies
  • 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
  • Initial release

Subscribe to package updates

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.