A review state site map for plone.
Python JavaScript CSS
Latest commit d637468 Jun 23, 2017 @jone jone committed on GitHub Merge pull request #20 from 4teamwork/mba/fix-test-suite
Fix test suite.
Permalink
Failed to load latest commit information.
docs
ftw
.gitignore
MANIFEST.in
README.rst
bootstrap.py
development.cfg
setup.py
test-plone-4.3.x.cfg

README.rst

ftw.statusmap

A plone view listing objects and review states in a tree.

Features

  • Shows objects and review states recursively as tree.
  • Adds CSS-classes per review-state for easy custom styling.
  • Allows to execute workflow transitions for every object which has this transition available.

Usage

  • Add ftw.statusmap to your buildout configuration:
[instance]
eggs +=
    ftw.statusmap
  • Install the generic setup profile.

Constraint Checker

The IConstraintChecker utility is used to check if a transaction can be executed on an object or not.

It's possible to register multiple IConstraintChecker utilities and all utilities will be executed.

Adding an IConstraintChecker utility

Create your Utility:

from ftw.statusmap.interfaces import IConstraintChecker
from zope.interface import implements


class MyConstraintCheckerUtility(object):
    implements(IConstraintChecker)

    def is_transition_allowed(self, obj, transition):
        return True

Register your utility in zcml.

<configure
    xmlns="http://namespaces.zope.org/zope"
    xmlns:i18n="http://namespaces.zope.org/i18n"
    i18n_domain="ftw.statusmap">

    <utility
      provides="ftw.statusmap.interfaces.IConstraintChecker"
      name="My Constraint Checker"
      factory=".checker.MyConstraintCheckerUtility"
      />

</configure>

Links

Copyright

This package is copyright by 4teamwork.

ftw.statusmap is licensed under GNU General Public License, version 2.