skip to navigation
skip to content

collective.powertoken.workflow 0.1.0

Workflow add-ons for collective.powertoken support for Plone

Downloads ↓

Latest Version: 0.2.0

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.consumeAction(document, token)
>>> print results
['published']

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

Parameters

workflow_action
Required. You need to provide the workflow action to perform.

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.

RedTurtle Technology Site

Changelog

0.1.0 (2012-01-11)

  • Initial release
 
File Type Py Version Uploaded on Size # downloads
collective.powertoken.workflow-0.1.0.tar.gz (md5) Source 2012-01-11 12KB 185