Workflow add-ons for collective.powertoken support for Plone
Project description
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.
Changelog
0.1.0 (2012-01-11)
Initial release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for collective.powertoken.workflow-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f27cf63470f78ea6463b3b282158d06257ccae1fe7f7bf57c3b7ca9734b79246 |
|
MD5 | e75e7af30eadafb4626f7bf290f96ea2 |
|
BLAKE2b-256 | 08e563e756853b44cc11095ed55d130de0a6605d85135dfe637c704612850015 |