Skip to main content

ZTFY package used to add wrapper around Zope security

Project description

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.9

  • correction on ISecurityManager arguments

  • updated templates

0.2.8

  • changed package source layout

0.2.7

  • added ILocalRoleIndexer interface and default adapter

0.2.6

  • added annotations interfaces on standard zope.pluggableauth GroupFolder class

  • escape quotes in Javascript code

0.2.5

  • updated imports for last ztfy.jqueryui and ztfy.skin package

  • added AJAX checks in principals widgets

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

Project details


Download files

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

Source Distribution

ztfy.security-0.2.9.tar.gz (20.7 kB view details)

Uploaded Source

Built Distribution

ztfy.security-0.2.9-py2.7.egg (57.3 kB view details)

Uploaded Egg

File details

Details for the file ztfy.security-0.2.9.tar.gz.

File metadata

File hashes

Hashes for ztfy.security-0.2.9.tar.gz
Algorithm Hash digest
SHA256 52f83d7899aa277b7172d590de85d9cb9827c508cf220b41dca9817ddaaf64bc
MD5 466244084f6e79f2433eceaed7ff4763
BLAKE2b-256 e6e524f7b923442bd4db8d334f19ca971bb5d00e9dd342dfd3f66968a25875ea

See more details on using hashes here.

File details

Details for the file ztfy.security-0.2.9-py2.7.egg.

File metadata

File hashes

Hashes for ztfy.security-0.2.9-py2.7.egg
Algorithm Hash digest
SHA256 26f63501eb47234855b1cd238769daee674df15e485e6a987ea0b39bfc8dc84e
MD5 4263eea06b5849c2e56251110f02b4c9
BLAKE2b-256 723a718a79b95b0560b525597408af5682ae0c1450b027512233012621103354

See more details on using hashes here.

Supported by

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