Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Workflow add-ons for collective.powertoken support for Plone

Project Description


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

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


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.


This product was developed by RedTurtle Technology team.


0.2.0 (2012-02-15)

  • added support for comment runtime parameter [keul]
  • fixed documentation [keul]

0.1.0 (2012-01-11)

  • initial release
Release History

Release History

This version
History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
collective.powertoken.workflow-0.2.0.tar.gz (12.7 kB) Copy SHA256 Checksum SHA256 Source Feb 15, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting