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.

Download
ActivePython
INSTALL>
pypm install sc.contentrules.movebyattribute

How to install sc.contentrules.movebyattribute

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install sc.contentrules.movebyattribute
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.5 Available View build log
Windows (64-bit)
0.5 Available View build log
Mac OS X (10.5+)
0.5 Available View build log
Linux (32-bit)
0.5 Available View build log
Linux (64-bit)
0.5 Available View build log
 
License
GPL
Dependencies
Lastest release
version 0.5 on Jun 24th, 2011

sc.contentrules.movebyattribute

Overview
sc.contentrules.movebyattribute is a content rule action used to organize content by moving it under a folderish object with the same id as the value returned by a selected attribute.
Use case

In a portal content is created in a folder /post and must be moved to a new location when it is published. This new location will be under another folder /blogs where every user has its own sub folder

A portal manager will add a content rule that when a Page is published inside /post it will lookup the value of the method Creator and then move the published content to a folderish under /blog. The id of this folderish will match the value extracted from the Creator method.

So, a user with username kirk, will add a new Page in /post and wait for publication. When a reviewer publishes the content, it will be moved under /blog/kirk, which must already exist.

Installation

To enable this product,on a buildout based installation:

  1. Edit your buildout.cfg and add sc.contentrules.movebyattribute to the list of eggs to install

    [buildout]
    ...
    eggs =
        sc.contentrules.movebyattribute
    

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:

Credits
  • Erico Andrei (erico at simplesconsultoria dot com dot br)
Changelog
0.5 (2011-06-23)
  • Brazilian Portuguese translation [erico_andrei]
  • Initial release [erico_andrei]

Subscribe to package updates

Last updated Jun 24th, 2011

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.