Skip to main content

Define local roles settings by dexterity type

Project description

Introduction

Allow to define local roles settings by dexterity type.

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

You can now define for each state which principal will receive some local roles automatically.

By example:

  • on the “pending” state, the “stephen” user will receive the following role: Reviewer.

  • on the “published” state, the ‘editors’ group will receive the following roles: Editor, Reviewer.

Those automaticaly given roles cannot be manually removed by the “sharing” tab (read only, as inherited roles).

This package is a base for dexterity.localrolesfield that adds a field to define the principal.

Installation

  • Add dexterity.localroles 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.localroles.png https://coveralls.io/repos/collective/dexterity.localroles/badge.svg?branch=master&service=github

Contributors

  • IMIO, Original Author

Changelog

1.5 (2021-08-27)

  • Added update_roles_in_fti method to update local roles in a config. [sgeulette]

  • Added update_security_index method to update security index [sgeulette]

1.4 (2019-06-23)

  • Safe dict key access [sgeulette]

  • Added css id in configuration form. [sgeulette]

1.3 (2018-11-06)

  • Use safely state title in unicode. [sgeulette]

1.2 (2017-05-30)

  • Refactored utils method [sgeulette]

  • Added method to delete related uid annotation. [sgeulette]

1.1 (2016-04-18)

  • Useless subscriber removed. [sgeulette]

1.0 (2015-11-24)

  • Use only local roles in vocabulary. [sgeulette]

  • Store all configuration in one fti attribute ‘localroles’. Useful for dexterity.localrolesfield to avoid a field name is an existing attribute [sgeulette]

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

  • Add related search utility [sgeulette]

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

  • Add an adapter for related local roles [sgeulette]

  • Simplify code [sgeulette]

0.2 (2015-06-02)

  • Avoid exception on site deletion [sgeulette]

0.1 (2014-10-24)

  • Various improvements [mpeeters, sgeulette]

  • Added tests [sgeulette]

  • Some improvements [sgeulette]

  • Add validation on configuration view [mpeeters]

  • Add localroles configuration view [mpeeters]

  • Add an adapter for borg.localrole [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.localroles-1.5.tar.gz (35.9 kB view details)

Uploaded Source

File details

Details for the file dexterity.localroles-1.5.tar.gz.

File metadata

  • Download URL: dexterity.localroles-1.5.tar.gz
  • Upload date:
  • Size: 35.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.5

File hashes

Hashes for dexterity.localroles-1.5.tar.gz
Algorithm Hash digest
SHA256 1927ec11510dbc3350eee7ef3ed72a95e708eb186efe43d608d409a4a8c958a0
MD5 2f1ce0b90eef7f38bdc43f70de89ba9d
BLAKE2b-256 9e64d54959f2de8fe7ffef0b5433c2b043abd8ca3d8d39b6b5704005ade8c6d5

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