Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Introduction

This package permits to give a local role on a content following a content field value and the workflow state. It uses borg.localrole.

A new configuration page is added as a new tab on each dexterity type configuration.

You can there define for each local role field and each state which local roles will be automatically given to the selected principal in the field.

You will find in each configuration line an additional field names suffix. If completed, the suffix name will be added at the end of the local role field value to define a principal name.

By example: if the configuration suffix is “director” and the local role field value is “group1”, the local role will be given to “group1_director”.

This last functionality is used with the package collective.contact.plonegroup.

Technically, this package extends dexterity.localroles:

  • provides a principal selector field

  • extends the configuration page

This is a refactoring of collective.z3cform.rolefield.

Installation

  • Add dexterity.localrolesfield to your eggs.

  • Re-run buildout.

  • Done.

Versions

  • Version 2.x is Plone 4 and Plone6 compliant

  • Version 1.x is Plone 4 only

Credits

Have an idea? Found a bug? Let us know by opening a ticket.

Tests

This package is tested using Travis CI. The current status of the add-on is :

https://api.travis-ci.org/collective/dexterity.localrolesfield.png https://coveralls.io/repos/collective/dexterity.localrolesfield/badge.svg?branch=master&service=github

Contributors

  • Martin Peeters, Original Author [Affinitic]

Changelog

2.0.0b3 (2026-11-16)

  • Deferred objects security reindex in local roles configuration form when DEFER_SECURITY_UPDATE env var is set. [sgeulette]

2.0.0b2 (2026-08-14)

  • Replaced json.loads with ast.literal_eval (DMS-1218). [chris-adam]

2.0.0b1 (2026-06-19)

  • Defered security update following request parameter DEFER_SECURITY_UPDATE. [sgeulette]

  • Used custom ZLogHandler. [sgeulette]

  • Improved security of ‘related’ field by restricting its value to JSON. [sgeulette]

  • Corrected tests setup [sgeulette]

2.0.0b0 (2026-01-15)

  • Added Plone 6.1 version in buildout. [chris-adam, sgeulette]

  • Corrected tests for Plone 6 [sgeulette]

2.0.0a (2023-11-28)

  • Made Plone4 and Plone6 compliant

  • Updated requirements. [sgeulette]

1.3 (2021-08-27)

  • Added “try except” to manage RequiredMissing exception. [sgeulette]

1.2 (2017-05-30)

  • Manage object modification for related. [sgeulette]

1.1.1 (2016-05-19)

  • Test if event description contains attributes. [sgeulette]

1.1 (2016-04-18)

  • Reindex children security when a parent role field is modified. [sgeulette]

1.0.1 (2015-11-26)

  • Test if attribute exists (can be hidden) [sgeulette]

1.0 (2015-11-24)

  • Configuration is now stored in one fti attribute to avoid a field name erases an existing fti attribute. [sgeulette]

  • Add a related field to store a text configuration that will be used to set related objects local roles. [sgeulette]

  • Add memoize on localroles fields list [sgeulette]

  • Change related local roles on transition, on addition, on removal, on moving, on configuration changes [sgeulette]

  • Unconfigure dexterity.localroles subscriber for ILocalRoleListUpdatedEvent [sgeulette]

  • Don’t call anymore localroles adapter in localrolesfield adapter. Adapters are now named and differentiated. [sgeulette]

0.2.1 (2015-06-02)

  • Update Readme [sgeulette]

0.2 (2015-06-02)

  • Avoid exception on site deletion. [sgeulette]

  • Add single value local role field. [cedricmessiant]

  • Also lookup behaviors when searching for local role fields. [cedricmessiant]

0.1 (2014-10-24)

  • Initial release [mpeeters]

Metadata

Release files for dexterity.localrolesfield 2.0.0b3

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

Source distribution (sdist)

Source distribution for dexterity.localrolesfield 2.0.0b3
File Size Uploaded Provenance Actions
dexterity_localrolesfield-2.0.0b3.tar.gz 34.9 kB Without provenance Details for dexterity_localrolesfield-2.0.0b3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dexterity.localrolesfield 2.0.0b3
File Interpreter ABI Platform Actions
dexterity_localrolesfield-2.0.0b3-py3-none-any.whl Python 3 none any Details for dexterity_localrolesfield-2.0.0b3-py3-none-any.whl

Total release size: 62.3 kB

Release files / dexterity_localrolesfield-2.0.0b3.tar.gz

Download URL dexterity_localrolesfield-2.0.0b3.tar.gz
Size 34.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4049fba1df463a6b89ab40ff47191ff8c384722714a6736531c6551a06fcd336
BLAKE2b-256 checksum
How to use checksums
5132f4cb84b63bc192b2ca80e90dcdfd9bc60b69290c178112268a75a55c47e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.2

Release files / dexterity_localrolesfield-2.0.0b3-py3-none-any.whl

Download URL dexterity_localrolesfield-2.0.0b3-py3-none-any.whl
Size 27.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c8021765fccde1a0f1393fef8cb1eb332d7e72123f2ae3c75d5a0b1362c9e78b
BLAKE2b-256 checksum
How to use checksums
cdb45d27fb314509a6a3710fef2975343441f3909c18bcd7ed58f757c138d66d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.2

Security for dexterity.localrolesfield 2.0.0b3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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