[Checkins] SVN: zope.wfmc/trunk/ Get for release.
Stephan Richter
srichter at cosmos.phy.tufts.edu
Fri Nov 2 20:20:55 EDT 2007
Log message for revision 81413:
Get for release.
Changed:
A zope.wfmc/trunk/CHANGES.txt
A zope.wfmc/trunk/README.txt
U zope.wfmc/trunk/buildout.cfg
U zope.wfmc/trunk/setup.py
_U zope.wfmc/trunk/src/
U zope.wfmc/trunk/src/zope/wfmc/xpdl.txt
-=-
Added: zope.wfmc/trunk/CHANGES.txt
===================================================================
--- zope.wfmc/trunk/CHANGES.txt (rev 0)
+++ zope.wfmc/trunk/CHANGES.txt 2007-11-03 00:20:53 UTC (rev 81413)
@@ -0,0 +1,8 @@
+=======
+CHANGES
+=======
+
+3.4.0 (2007-11-02)
+------------------
+
+- Initial release independent of the main Zope tree.
Property changes on: zope.wfmc/trunk/CHANGES.txt
___________________________________________________________________
Name: svn:eol-style
+ native
Added: zope.wfmc/trunk/README.txt
===================================================================
--- zope.wfmc/trunk/README.txt (rev 0)
+++ zope.wfmc/trunk/README.txt 2007-11-03 00:20:53 UTC (rev 81413)
@@ -0,0 +1,4 @@
+This package provides an implementation of a Workflow-Management
+Coalition (WFMC) workflow engine. The engine is provided as a
+collection of workflow process components. Workflow processes can be
+defined in Python or via the XML Process-Definition Language, XPDL.
Property changes on: zope.wfmc/trunk/README.txt
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: zope.wfmc/trunk/buildout.cfg
===================================================================
--- zope.wfmc/trunk/buildout.cfg 2007-11-02 20:24:36 UTC (rev 81412)
+++ zope.wfmc/trunk/buildout.cfg 2007-11-03 00:20:53 UTC (rev 81413)
@@ -1,8 +1,7 @@
[buildout]
parts = test
develop = .
-find-links = http://download.zope.org/distribution/
[test]
recipe = zc.recipe.testrunner
-eggs = zope.wfmc
+eggs = zope.wfmc [test]
Modified: zope.wfmc/trunk/setup.py
===================================================================
--- zope.wfmc/trunk/setup.py 2007-11-02 20:24:36 UTC (rev 81412)
+++ zope.wfmc/trunk/setup.py 2007-11-03 00:20:53 UTC (rev 81413)
@@ -15,30 +15,52 @@
$Id: setup.py 72841 2007-02-26 22:25:58Z ctheune $
"""
-
import os
-
from setuptools import setup, find_packages
+def read(*rnames):
+ return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
+
setup(name='zope.wfmc',
version='3.4.0',
- url='http://svn.zope.org/zope.wfmc',
- license='ZPL 2.1',
- description='Zope wfmc',
author='Zope Corporation and Contributors',
author_email='zope3-dev at zope.org',
- long_description="Workflow-Management Coalition Workflow Engine",
-
+ description="Workflow-Management Coalition Workflow Engine",
+ long_description=(
+ read('README.txt')
+ + '\n\n' +
+ 'Detailed Documentation\n' +
+ '======================\n\n'
+ + '\n\n' +
+ read('src', 'zope', 'wfmc', 'README.txt')
+ + '\n\n' +
+ read('src', 'zope', 'wfmc', 'xpdl.txt')
+ + '\n\n' +
+ read('CHANGES.txt')
+ ),
+ keywords = "zope3 wfmc xpdl workflow engine",
+ classifiers = [
+ 'Development Status :: 5 - Production/Stable',
+ 'Environment :: Web Environment',
+ 'Intended Audience :: Developers',
+ 'License :: OSI Approved :: Zope Public License',
+ 'Programming Language :: Python',
+ 'Natural Language :: English',
+ 'Operating System :: OS Independent',
+ 'Topic :: Internet :: WWW/HTTP',
+ 'Framework :: Zope3'],
+ url='http://cheeseshop.python.org/pypi/zope.wfmc',
+ license='ZPL 2.1',
packages=find_packages('src'),
package_dir = {'': 'src'},
-
- namespace_packages=['zope',],
- tests_require = ['zope.testing'],
+ namespace_packages=['zope'],
+ extras_require = dict(
+ test=['zope.testing'
+ ]),
install_requires=['setuptools',
'zope.component',
'ZODB3',
'zope.cachedescriptors'],
include_package_data = True,
-
zip_safe = False,
)
Property changes on: zope.wfmc/trunk/src
___________________________________________________________________
Name: svn:ignore
+ zope.wfmc.egg-info
Modified: zope.wfmc/trunk/src/zope/wfmc/xpdl.txt
===================================================================
--- zope.wfmc/trunk/src/zope/wfmc/xpdl.txt 2007-11-02 20:24:36 UTC (rev 81412)
+++ zope.wfmc/trunk/src/zope/wfmc/xpdl.txt 2007-11-03 00:20:53 UTC (rev 81413)
@@ -1,3 +1,4 @@
+===========
XPDL Import
===========
@@ -12,7 +13,7 @@
>>> from zope.wfmc import xpdl
>>> import os
- >>> package = xpdl.read(open(os.path.join(this_directory,
+ >>> package = xpdl.read(open(os.path.join(this_directory,
... 'publication.xpdl')))
This package contains a single definition:
@@ -137,7 +138,7 @@
... # Reject if either tech reviewer rejects
... self.activity.workItemFinished(
... self, False, changes1 + changes2, ())
- ...
+ ...
... if changes1 or changes2:
... # we won't do anyting if there are tech changes
... self.activity.workItemFinished(
@@ -194,7 +195,7 @@
... def start(self):
... print "Rejected"
... self.finish()
-
+
>>> integration.rejectWorkItem = Reject
and a process context, so we can pass parameters:
@@ -216,7 +217,7 @@
ActivityStarted(Activity(u'Publication.start'))
ActivityFinished(Activity(u'Publication.start'))
Author `bob` selected
- Transition(Activity(u'Publication.start'),
+ Transition(Activity(u'Publication.start'),
Activity(u'Publication.prepare'))
ActivityStarted(Activity(u'Publication.prepare'))
@@ -226,15 +227,15 @@
... "the natural resources of my Country.")
WorkItemFinished(u'prepare')
ActivityFinished(Activity(u'Publication.prepare'))
- Transition(Activity(u'Publication.prepare'),
+ Transition(Activity(u'Publication.prepare'),
Activity(u'Publication.tech1'))
ActivityStarted(Activity(u'Publication.tech1'))
- Transition(Activity(u'Publication.prepare'),
+ Transition(Activity(u'Publication.prepare'),
Activity(u'Publication.tech2'))
ActivityStarted(Activity(u'Publication.tech2'))
>>> item = tech1.work_list.pop()
- >>> print item.getDoc()
+ >>> print item.getDoc()
I give my pledge, as an American
to save, and faithfully to defend from waste
the natural resources of my Country.
@@ -242,20 +243,20 @@
>>> item.finish(True, ['Change "American" to "human"'])
WorkItemFinished(u'tech_review')
ActivityFinished(Activity(u'Publication.tech1'))
- Transition(Activity(u'Publication.tech1'),
+ Transition(Activity(u'Publication.tech1'),
Activity(u'Publication.review'))
>>> item = tech2.work_list.pop()
>>> item.finish(True, ['Change "Country" to "planet"'])
WorkItemFinished(u'tech_review')
ActivityFinished(Activity(u'Publication.tech2'))
- Transition(Activity(u'Publication.tech2'),
+ Transition(Activity(u'Publication.tech2'),
Activity(u'Publication.review'))
ActivityStarted(Activity(u'Publication.review'))
WorkItemFinished(u'ed_review')
ActivityFinished(Activity(u'Publication.review'))
Author `bob` selected
- Transition(Activity(u'Publication.review'),
+ Transition(Activity(u'Publication.review'),
Activity(u'Publication.prepare'))
ActivityStarted(Activity(u'Publication.prepare'))
@@ -274,7 +275,7 @@
... "the natural resources of my planet.")
WorkItemFinished(u'prepare')
ActivityFinished(Activity(u'Publication.prepare'))
- Transition(Activity(u'Publication.prepare'),
+ Transition(Activity(u'Publication.prepare'),
Activity(u'Publication.tech1'))
ActivityStarted(Activity(u'Publication.tech1'))
Transition(Activity(u'Publication.prepare'),
@@ -348,17 +349,18 @@
>>> context.decision
True
+
Descriptions
-============
+------------
Most process elements can have names and descriptions.
-
+
>>> pd.__name__
u'Publication'
-
+
>>> pd.description
u'This is the sample process'
-
+
>>> pd.applications['prepare'].__name__
u'Prepare'
@@ -367,22 +369,22 @@
>>> pd.activities['tech1'].__name__
u'Technical Review 1'
-
+
>>> pd.activities['tech1'].description
u'This is the first Technical Review.'
-
+
>>> pd.participants['tech1'].__name__
u'Technical Reviewer 1'
-
+
>>> pd.participants['tech1'].description
u'He is a smart guy.'
-
+
>>> sorted([item.__name__ for item in pd.transitions])
[u'Transition', u'Transition', u'Transition', u'Transition',
u'Transition', u'Transition', u'Transition', u'Transition',
u'Transition', u'Transition', u'Transition to Tech Review 1',
u'Transition to Tech Review 2']
-
+
>>> sorted([item.description for item in pd.transitions])
[None, None, None, None, None, None, None, None, None, None, None,
- u'Use this transition if there are editorial changes required.']
\ No newline at end of file
+ u'Use this transition if there are editorial changes required.']
More information about the Checkins
mailing list