[Zope-CMF] [DCWorkflow] How-to dump you work in a python module
Big
Sebastien.Bigaret@inqual.com
23 Sep 2001 16:38:31 +0200
Hi there Zopers!
Indeed, DCWorkflow is a wonderful product, allowing you to create your own
workflow with a nice and effective TTW UI. It just lacks the ability to dump
the work one has done with it into a 'solid' python file, just like the two
default workflows (wf types) that are shipped with.
I developped a little script which dumps a DCWorkflow instance into a python
file, thus making it simplier to distribute as a workflow type, to share in a
CVS repository in on readable format, etc.
You will find all informations on:
http://cmf.zope.org/Members/Big/dumpDCWorkflowHowto
You'll probably note that the title is not *that* accurate: this procedure
actually dumps an existing workflow *instance* into a python file, making it
available as a workflow *type*.
I would greatly appreciate any comments, remarks critics and feedbacks on this.
Hope that will be useful for some of you,
SB aka Big, on the newbie-to-rookie-road.
--
BTW: there is a little typo in Defaults.py (trailing comma missing):
diff -r1.4 Default.py
152c152
< sdef.setPermission(p_modify, 0, (r_manager))
---
> sdef.setPermission(p_modify, 0, (r_manager,))