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.

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

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-1.0.zip (43.3 kB view details)

Uploaded Source

File details

Details for the file dexterity.localrolesfield-1.0.zip.

File metadata

File hashes

Hashes for dexterity.localrolesfield-1.0.zip
Algorithm Hash digest
SHA256 9f34bcd6ddb825d907fe62cb7011b96f1e45173d2b19795cd32439b8258553f2
MD5 c848ead5e4ca8d0ea127e5f495f747a3
BLAKE2b-256 dd9920a257a46296aef1d338ef3e6a6a34c84f3a1841744076c8ad80007f49a4

See more details on using hashes here.

Supported by

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