Package: sc.contentrules.localrole
ContentOverviewUse caseInstallationActionApply local roleRequirementsShare and EnjoyChangelog1.0 (2018-11-20)1.0b3 (2014-06-02)1.0b2 (2012-11-13)1.0b1 (2012-10-30)0.5 (2011-09-15)OverviewContent 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:Use caseA 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.InstallationTo enable this product on a buildout based installation:Edit your buildout.cfg and addsc.contentrules.localroleto the list of eggs to install[buildout]
...
eggs =
    sc.contentrules.localroleAfter updating the configuration you need to run the ‘’bin/buildout’’,
which will take care of updating your system.ActionThis package provides one content rules action.Apply local roleUsed to create a new user group this action have three options:The local role content rule.User/Group IDIdentifier 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} Editorsand the action
is being executed for a folder with title “Environmental Studies”, this field will
be “Environmental Studies Editors”.
This field should be left blank if the “Field with User/Group ID” field is filled.Field with User/Group IDPick a field on the content item which contains user/group ID to receive the
permission. If the field is not found not permission will be set in sharing.
This field should be blank if the “User/Group ID” field is filled.RolesLocal roles to be applied in the current content – the one that triggered the
content rule – to the user or group identified on the previous fieldRequirementsPlone 4.3.x and above (http://plone.org/products/plone)Share and Enjoysc.contentrules.localrolewould not have been possible without the contribution
of the following people:Erico Andrei (erico at simplesconsultoria dot com dot br)Héctor VelardeJon PentlandRodrigo Ferreira de SouzaDevelopment sponsored bySimples ConsultoriaandIEA/USP.Changelog1.0 (2018-11-20)Allow to pick principle from context item.
[rodfersou]Make compatible with Plone5.
[instification, rodfersou]Drop support for Python 2.6 and Plone 4.0-4.2.
[rodfersou]1.0b3 (2014-06-02)Fix package dependencies.
[hvelarde]Coveralls support [ericof]Implement better QA for code [ericof]Fix summary for content rules action [ericof]1.0b2 (2012-11-13)Update translations [ericof]Fix packaging [ericof]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]