Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

pypm install sc.contentrules.localrole

How to install sc.contentrules.localrole

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install sc.contentrules.localrole
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
1.0b2Never BuiltWhy not?
0.5 Available View build log
Windows (64-bit)
1.0b2Never BuiltWhy not?
0.5 Available View build log
Mac OS X (10.5+)
1.0b2Never BuiltWhy not?
0.5 Available View build log
Linux (32-bit)
1.0b2Never BuiltWhy not?
0.5 Available View build log
Linux (64-bit)
1.0b2 Available View build log
0.5 Available View build log
Lastest release
version 1.0b2 on Jan 9th, 2014


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:


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.


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"
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


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

    eggs =

After updating the configuration you need to run the ''bin/buildout'', which will take care of updating your system.


Development of this product was sponsored by:


  • Erico Andrei (erico at simplesconsultoria dot com dot br)
  • Héctor Velarde (hector at simplesconsultoria dot com dot br)


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]

Subscribe to package updates

Last updated Jan 9th, 2014

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.