[CMF-checkins] CVS: CMF/DCWorkflow/doc - expressions.stx:1.5
Shane Hathaway
shane at zope.com
Mon Feb 9 16:40:16 EST 2004
Update of /cvs-repository/CMF/DCWorkflow/doc
In directory cvs.zope.org:/tmp/cvs-serv16344/doc
Modified Files:
expressions.stx
Log Message:
Added a pop-up expression reference and elaborated CHANGES.txt.
=== CMF/DCWorkflow/doc/expressions.stx 1.4 => 1.5 ===
--- CMF/DCWorkflow/doc/expressions.stx:1.4 Fri Aug 31 10:36:42 2001
+++ CMF/DCWorkflow/doc/expressions.stx Mon Feb 9 16:39:45 2004
@@ -1,43 +1,52 @@
-Starting with version 0.3, expressions in DCWorkflow are TALES expressions.
+DCWorkflow Expressions
+
+ Expressions in DCWorkflow are TALES expressions.
+(See the <a href="http://zope.org/Documentation/Books/ZopeBook">Zope Book</a>
+for background on page templates and TALES.)
Some of the contexts have slightly different meanings from what is provided
-for expressions in page templates:
+for expressions in page templates.
-here The content object
-container The content object's container
+- 'here' -- The content object
-Several other contexts are also provided:
+- 'container' -- The content object's container
-state_change A special object containing info about the state change
-transition The transition object being executed
-status The former status
-workflow The workflow definition object
-scripts The scripts in the workflow definition object
+Several other contexts are also provided.
-state_change objects provide the following attributes:
+- 'state_change' -- A special object containing info about the state change
-- 'status' is a mapping containing the workflow status.
+- 'transition' -- The transition object being executed
-- 'object' is the object being modified by workflow.
+- 'status' -- The former status
-- 'workflow' is the workflow definition object.
+- 'workflow' -- The workflow definition object
-- 'transition' is the transition object being executed.
+- 'scripts' -- The scripts in the workflow definition object
-- 'old_state' is the former state object.
+'state_change' objects provide the following attributes:
-- 'new_state' is the destination state object.
+- 'state_change.status' -- a mapping containing the workflow status.
-- 'kwargs' is the keyword arguments passed to the doActionFor() method.
+- 'state_change.object' -- the object being modified by workflow.
-- 'getHistory()', a method that returns a copy of the object's workflow
- history.
+- 'state_change.workflow' -- the workflow definition object.
+
+- 'state_change.transition' -- the transition object being executed.
+
+- 'state_change.old_state' -- the former state object.
-- 'getPortal()', which returns the root of the portal.
+- 'state_change.new_state' -- the destination state object.
+
+- 'state_change.kwargs' -- the keyword arguments passed to the
+ doActionFor() method.
+
+- 'state_change.getHistory()' -- returns a copy of the object's workflow
+ history.
-- 'ObjectDeleted' and 'ObjectMoved', exceptions that can be raised by
- scripts to indicate to the workflow that an object has been moved or
- deleted.
+- 'state_change.getPortal()' -- returns the root of the portal.
-- 'getDateTime' is a method that returns the DateTime of the transition.
+- 'state_change.ObjectDeleted' and 'ObjectMoved' -- exceptions that
+ can be raised by scripts to indicate to the workflow that an object
+ has been moved or deleted.
+- 'state_change.getDateTime()' -- returns the DateTime of the transition.
More information about the CMF-checkins
mailing list