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 collective.powertoken.workflow

How to install collective.powertoken.workflow

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install collective.powertoken.workflow
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.2.0 Available View build log
Windows (64-bit)
0.2.0 Available View build log
Mac OS X (10.5+)
0.2.0 Available View build log
Linux (32-bit)
0.2.0 Available View build log
Linux (64-bit)
0.2.0 Available View build log
 
License
GPL
Lastest release
version 0.2.0 on Feb 16th, 2012

Introduction

A workflow action implementation for collective.powertoken.

How to use

Add this product to your Plone installation, then you will be able to register Power Tokens that performs workflow action when consumed.

>>> from collective.powertoken.core.interfaces import IPowerTokenUtility
>>> utility = getUtility(IPowerTokenUtility)
>>> token = utility.enablePowerToken(document, 'workflow.doAction', workflow_action='publish')
>>> results = utility.consumeActions(document, token)
>>> print results
['published']

You will get the new state of the document as result.

You can optionally add a runtime parameter to the action provider, for adding also the workflow state change comment.

>>> token = utility.enablePowerToken(document, 'workflow.doAction', workflow_action='retract')
>>> results = utility.consumeActions(document, token, comment="Hello! I hide this!")
['private']
Parameters

workflow_action (configuration parameter) Required. You need to provide the workflow action to perform.

comment (runtime parameter) Optional. Use to save also a comment to the workflow action.

Use case

You can perform a state change for a document, regardless of your roles in the site.

Authors

This product was developed by RedTurtle Technology team.

http://www.redturtle.it/redturtle_banner.png

System Message: WARNING/2 (<string>, line 50)

Explicit markup ends without a blank line; unexpected unindent.
alt:RedTurtle Technology Site
target:http://www.redturtle.it/

Changelog

0.2.0 (2012-02-15)
  • added support for comment runtime parameter [keul]
  • fixed documentation [keul]
0.1.0 (2012-01-11)
  • initial release

Subscribe to package updates

Last updated Feb 16th, 2012

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.