.. contents::
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`_.
.. _`opening a ticket`: https://github.com/collective/dexterity.localrolesfield/issues
Tests
=====
This package is tested using Travis CI. The current status of the add-on is :
.. image:: https://api.travis-ci.org/collective/dexterity.localrolesfield.png
:target: https://travis-ci.org/collective/dexterity.localrolesfield
.. image:: https://coveralls.io/repos/collective/dexterity.localrolesfield/badge.svg?branch=master&service=github
:target: https://coveralls.io/github/collective/dexterity.localrolesfield?branch=master
Contributors
============
- Martin Peeters, Original Author [Affinitic]
Changelog
=========
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]
Raw data
{
"_id": null,
"home_page": "https://github.com/collective/",
"name": "dexterity.localrolesfield",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "Plone Python",
"author": "IMIO",
"author_email": "support@imio.be",
"download_url": "https://files.pythonhosted.org/packages/6d/07/8947ea73a0676e62ed440075eedec7fb182d995ee3591540f7e341d644ce/dexterity.localrolesfield-1.3.tar.gz",
"platform": "",
"description": ".. contents::\n\nIntroduction\n============\n\nThis package permits to give a local role on a content following a content field value and the workflow state.\nIt uses borg.localrole.\n\nA new configuration page is added as a new tab on each dexterity type configuration.\n\nYou 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.\n\nYou will find in each configuration line an additional field names suffix.\nIf completed, the suffix name will be added at the end of the local role field value to define a principal name.\n\nBy example: if the configuration suffix is \"director\" and the local role field value is \"group1\", the local role will be given to \"group1_director\".\n\nThis last functionality is used with the package collective.contact.plonegroup. \n\nTechnically, this package extends dexterity.localroles:\n\n* provides a principal selector field\n* extends the configuration page\n\nThis is a refactoring of collective.z3cform.rolefield.\n\nInstallation\n============\n\n* Add dexterity.localrolesfield to your eggs.\n* Re-run buildout.\n* Done.\n\nCredits\n=======\n\nHave an idea? Found a bug? Let us know by `opening a ticket`_.\n\n.. _`opening a ticket`: https://github.com/collective/dexterity.localrolesfield/issues\n\n\nTests\n=====\n\nThis package is tested using Travis CI. The current status of the add-on is :\n\n.. image:: https://api.travis-ci.org/collective/dexterity.localrolesfield.png\n :target: https://travis-ci.org/collective/dexterity.localrolesfield\n.. image:: https://coveralls.io/repos/collective/dexterity.localrolesfield/badge.svg?branch=master&service=github\n :target: https://coveralls.io/github/collective/dexterity.localrolesfield?branch=master\n\nContributors\n============\n\n- Martin Peeters, Original Author [Affinitic]\n\nChangelog\n=========\n\n1.3 (2021-08-27)\n----------------\n\n- Added \"try except\" to manage RequiredMissing exception.\n [sgeulette]\n\n1.2 (2017-05-30)\n----------------\n\n- Manage object modification for related.\n [sgeulette]\n\n1.1.1 (2016-05-19)\n------------------\n\n- Test if event description contains attributes.\n [sgeulette]\n\n1.1 (2016-04-18)\n----------------\n\n- Reindex children security when a parent role field is modified.\n [sgeulette]\n\n1.0.1 (2015-11-26)\n------------------\n\n- Test if attribute exists (can be hidden)\n [sgeulette]\n\n1.0 (2015-11-24)\n----------------\n\n- Configuration is now stored in one fti attribute to avoid a field name erases an existing fti attribute.\n [sgeulette]\n- Add a related field to store a text configuration that will be used to set related objects local roles.\n [sgeulette]\n- Add memoize on localroles fields list\n [sgeulette]\n- Change related local roles on transition, on addition, on removal, on moving, on configuration changes\n [sgeulette]\n- Unconfigure dexterity.localroles subscriber for ILocalRoleListUpdatedEvent\n [sgeulette]\n- Don't call anymore localroles adapter in localrolesfield adapter. Adapters are now named and differentiated.\n [sgeulette]\n\n0.2.1 (2015-06-02)\n------------------\n\n- Update Readme\n [sgeulette]\n\n\n0.2 (2015-06-02)\n----------------\n\n- Avoid exception on site deletion.\n [sgeulette]\n\n- Add single value local role field.\n [cedricmessiant]\n\n- Also lookup behaviors when searching for local role fields.\n [cedricmessiant]\n\n\n0.1 (2014-10-24)\n----------------\n\n- Initial release\n [mpeeters]",
"bugtrack_url": null,
"license": "gpl",
"summary": "z3c.form local role field for dexterity",
"version": "1.3",
"project_urls": {
"Homepage": "https://github.com/collective/"
},
"split_keywords": [
"plone",
"python"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "6d078947ea73a0676e62ed440075eedec7fb182d995ee3591540f7e341d644ce",
"md5": "9e136235d126e50879a66900f979a4c7",
"sha256": "77ab57afb0d0be4d0bfa81f8b646fe9dd821375da89f4d0254d38b48cbd75618"
},
"downloads": -1,
"filename": "dexterity.localrolesfield-1.3.tar.gz",
"has_sig": false,
"md5_digest": "9e136235d126e50879a66900f979a4c7",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 29395,
"upload_time": "2021-08-27T10:00:23",
"upload_time_iso_8601": "2021-08-27T10:00:23.538610Z",
"url": "https://files.pythonhosted.org/packages/6d/07/8947ea73a0676e62ed440075eedec7fb182d995ee3591540f7e341d644ce/dexterity.localrolesfield-1.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2021-08-27 10:00:23",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "dexterity.localrolesfield"
}