Plone content rule action to apply local roles to a content object
Project description
**************************************
Content Rules: Apply local role
**************************************
.. contents:: Content
:depth: 2
Overview
--------
**Content Rules: Apply local role** (sc.contentrules.localrole) package
provides a content rule action to apply a local role in a content.
This package is tested with Travis CI:
.. image:: https://secure.travis-ci.org/simplesconsultoria/sc.contentrules.localrole.png
:target: http://travis-ci.org/simplesconsultoria/sc.contentrules.localrole
Use case
---------
A college with descentralized content management and groups dedicated to research. Each group should manage its own content.
In their portal they want to host areas for each research group they sponsor.
All those areas will be under the folder /research/. A research group called
"Environmental Studies" will have an area at /research/environmental-studies.
Every time a new research group is added under /research/ they want asing a local role to users and gropus:
* Editor local role: Given to users and groups responsible for this area.
* Reader local role: Group of users with access to this area.
Action
---------
This package provides one content rules action.
Apply local role
^^^^^^^^^^^^^^^^^^^
Used to create a new user group this action have three options:
Username / Group name
Identifier of the user or group to receive the local role in the current content.
You are allowed to use ${title} in here to dinamically generate the id of the user
or group. i.e.: If this field have a value of **${title} Editors** and the action
is being executed for a folder with title "Environmental Studies", this field will
be "Environmental Studies Editors"
Roles
Local roles to be applied in the current content -- the one that triggered the
content rule -- to the user or group identified on the previous field
Requirements
------------
* Plone 3.3.x and above (http://plone.org/products/plone)
Installation
------------
To enable this product,on a buildout based installation:
1. Edit your buildout.cfg and add ``sc.contentrules.localrole``
to the list of eggs to install ::
[buildout]
...
eggs =
sc.contentrules.localrole
After updating the configuration you need to run the ''bin/buildout'',
which will take care of updating your system.
Sponsoring
----------
Development of this product was sponsored by:
* `Simples Consultoria <http://www.simplesconsultoria.com.br/>`_.
* `IEA/USP <http://www.iea.usp.br/>`_.
Credits
-------
* Erico Andrei (erico at simplesconsultoria dot com dot br)
* Héctor Velarde (hector at simplesconsultoria dot com dot br)
Changelog
-----------
1.0b1 (2012-10-30)
^^^^^^^^^^^^^^^^
* Improve test coverage[ericof]
* PEP8 [ericof]
* Travis support [ericof]
0.5 (2011-09-15)
^^^^^^^^^^^^^^^^^^^^
* Spanish translation [hvelarde]
* Initial release [erico_andrei]
Content Rules: Apply local role
**************************************
.. contents:: Content
:depth: 2
Overview
--------
**Content Rules: Apply local role** (sc.contentrules.localrole) package
provides a content rule action to apply a local role in a content.
This package is tested with Travis CI:
.. image:: https://secure.travis-ci.org/simplesconsultoria/sc.contentrules.localrole.png
:target: http://travis-ci.org/simplesconsultoria/sc.contentrules.localrole
Use case
---------
A college with descentralized content management and groups dedicated to research. Each group should manage its own content.
In their portal they want to host areas for each research group they sponsor.
All those areas will be under the folder /research/. A research group called
"Environmental Studies" will have an area at /research/environmental-studies.
Every time a new research group is added under /research/ they want asing a local role to users and gropus:
* Editor local role: Given to users and groups responsible for this area.
* Reader local role: Group of users with access to this area.
Action
---------
This package provides one content rules action.
Apply local role
^^^^^^^^^^^^^^^^^^^
Used to create a new user group this action have three options:
Username / Group name
Identifier of the user or group to receive the local role in the current content.
You are allowed to use ${title} in here to dinamically generate the id of the user
or group. i.e.: If this field have a value of **${title} Editors** and the action
is being executed for a folder with title "Environmental Studies", this field will
be "Environmental Studies Editors"
Roles
Local roles to be applied in the current content -- the one that triggered the
content rule -- to the user or group identified on the previous field
Requirements
------------
* Plone 3.3.x and above (http://plone.org/products/plone)
Installation
------------
To enable this product,on a buildout based installation:
1. Edit your buildout.cfg and add ``sc.contentrules.localrole``
to the list of eggs to install ::
[buildout]
...
eggs =
sc.contentrules.localrole
After updating the configuration you need to run the ''bin/buildout'',
which will take care of updating your system.
Sponsoring
----------
Development of this product was sponsored by:
* `Simples Consultoria <http://www.simplesconsultoria.com.br/>`_.
* `IEA/USP <http://www.iea.usp.br/>`_.
Credits
-------
* Erico Andrei (erico at simplesconsultoria dot com dot br)
* Héctor Velarde (hector at simplesconsultoria dot com dot br)
Changelog
-----------
1.0b1 (2012-10-30)
^^^^^^^^^^^^^^^^
* Improve test coverage[ericof]
* PEP8 [ericof]
* Travis support [ericof]
0.5 (2011-09-15)
^^^^^^^^^^^^^^^^^^^^
* Spanish translation [hvelarde]
* Initial release [erico_andrei]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for sc.contentrules.localrole-1.0b1.zip
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbf7be539f7cb4cf2792372745700ad057002fbef18e47d9b4cddfa513a75c6e |
|
MD5 | 526724742a5b0b59964934b7cd1cc937 |
|
BLAKE2b-256 | 6cf53d2195ed3091a2e5849982a01efb7fac1dd3b93aef4dabdb70dce99c9d2d |