Locking Workflow

Warning
This product has not had a release in over 1 year and may no longer be maintained.
by Raphael Ritz last modified Feb 16, 2011 02:02 AM

Locking Workflow prevents concurrent editing in Plone.

Project Description

Locking Workflow prevents concurrent editing in Plone.

Installation

Like any other Plone product. Per default, the workflow is applied to documents, events, and news items as specified in the config file.

A portlet is provided to indicate who has locked the current item and since when. This portlet is inserted into the top left slot (above the navigation box).

If you are using it with a Plone version prior to 2.1, you should first adjust the config file as explained in there.

How it works

The locking workflow is a simple two state workflow (unlocked and locked) restricting the edit permission in the locked state to the newly introduced Editor role.

Per default, nobody has this editor role but it gets assigned as local role to the current user as soon as (s)he invokes the edit action which also triggers the lock transitions which takes the content item into the locked state. Saving the edit form triggers the unlock transition which takes the content item back to the unlocked state. The unlock transition can also be triggered TTW like any other workflow transition.

The locking workflow can be combined with any other workflow as it exploits the fact that content types can be subject to several workflows at once.

Caveats

When adding the locking workflow to a type in ZMI make sure that you also change the edit action of this type to invoke lock_and_edit, the form controller settings for the actions of lock_and_edit and the form controller settings of the method that invokes the view after successful editing (for Archetypes that's validate_integrity). If you add further types in the locking workflow's config file instead, a simple (re)install should take care of all of this.

Current Release
Locking Workflow 0.2

Released Sep 28, 2005 — tested with Plone 2.1, Plone 2.0.5, Archetypes 1.3.3

Better support for Plone versions prior to 2.1
More about this release…

Download file Get Locking Workflow for all platforms
Product Package
If you are using Plone 3.2 or higher, you probably want to install this product with buildout. See our tutorial on installing add-on products with buildout for more information.

All Releases

Version Released Description Compatibility Status
0.2 Sep 28, 2005 Better support for Plone versions prior to 2.1 More about this release…
Plone 2.1
Plone 2.0.5
Archetypes 1.3.3
final
0.1 The very first release for testing and feedback from the community. More about this release…
Plone 2.1
Plone 2.0.5
Archetypes 1.3.3
Archetypes 1.2
alpha

Comments (0)