Skip to main content

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

  • order principals by title in input and display widgets

0.4.2

  • added “backspace_removes_last” property to PrincipalsListWidget

0.4.1

  • added missing translations

0.4.0

  • added new token authentication plug-in. This plug-in relies on a classic InternalPrincipalContainer but can extract credentials from an encoded token given in URL. This token is built in a way that includes current date so that it’s not permanent.

0.3.1

  • 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

0.3.0

  • use ZTFY.skin data API

  • remove unused resources

  • disable auto-completion on roles input widgets

0.2.11

  • convert roles edit form to dialog

0.2.10

  • use request cache in “getPrincipal()” function

0.2.9

  • corrected ISecurityManager methods arguments names

  • templates updated to display null values

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

Release files for ztfy.security 0.4.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ztfy.security 0.4.3
File Size Uploaded
ztfy.security-0.4.3.tar.gz 25.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ztfy.security 0.4.3
File Interpreter ABI Platform
ztfy.security-0.4.3-py2.7.egg Legacy Egg format - - Details

Total release size: 86.1 kB

Release files / ztfy.security-0.4.3.tar.gz

Download URL ztfy.security-0.4.3.tar.gz
Size 25.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5e1becd9de3f4f5fbad1618b153be513103d6c3bfff2c8852d7e36ff52251592
BLAKE2b-256 checksum
How to use checksums
614c2d3c4dfe6ba8a205f82ed399b9d5a36c01245c762b126bbb67386fe37739
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / ztfy.security-0.4.3-py2.7.egg

Download URL ztfy.security-0.4.3-py2.7.egg
Size 60.7 kB
Tags Egg
SHA-256 checksum
How to use checksums
b15df3efa09e5f7904c1ee8511405fd7e6bc0852b3d5912c3ca852ac7d52b87a
BLAKE2b-256 checksum
How to use checksums
bcdd479fe1f49924264ddca61b4d2b3ef6c091a972627d55c2805c77160227b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.4.3 This release

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.11

2 release files

0.2.10

2 release files

0.2.9

2 release files

0.2.8

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page