Skip to main content

z3c.form local role field for dexterity

Project description

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

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

dexterity_localrolesfield-2.0.0b1.tar.gz (34.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dexterity_localrolesfield-2.0.0b1-py3-none-any.whl (27.1 kB view details)

Uploaded Python 3

File details

Details for the file dexterity_localrolesfield-2.0.0b1.tar.gz.

File metadata

File hashes

Hashes for dexterity_localrolesfield-2.0.0b1.tar.gz
Algorithm Hash digest
SHA256 9cdce4e717b43e9c0ba78fcace5fb8cf5a9106d5dcadfcc15bfc3878e361c3c4
MD5 359c79d4efaaadbcf437ea15a682900b
BLAKE2b-256 816796251ae3f76700b19d8ec70e93f1aa9c5b7fd7be51e862b02ec6ef8bed3a

See more details on using hashes here.

File details

Details for the file dexterity_localrolesfield-2.0.0b1-py3-none-any.whl.

File metadata

File hashes

Hashes for dexterity_localrolesfield-2.0.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 d34f019478702cf9932066b1c1e7117e7baa09925f8ba1556b12027ee05fdb15
MD5 ca318d3b91582f30d02ada81145b1a40
BLAKE2b-256 608a74705c78fd644502b3832ffe528269e0bf1abc7de98f4002e0be0937cc9a

See more details on using hashes here.

Supported by

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