[Zope-CMF] DCWorkflow version 0.4

Ulrich Eck ueck@net-labs.de
Fri, 31 Aug 2001 19:23:03 +0200


Infos about the Namespace of TALESExpressions in DCWorkflow 

I think this is a useful information: 

To find out what TALES-Expressions are, look at: 
http://www.zope.org/Wikis/DevSite/Projects/ZPT/TALES

The Namespace is slightly different from PageTemplate's standard: 

TALES Expression Namespace: 

 - nothing - special singleton value used by TAL to represent 
               a non-value (e.g. void, None, Nil, NULL). 

 - root - the system's top-most object. 

 - here - the object to which the workflow is being applied. 

 - container - the objects's container object. 

 - request - the publishing request object. 

 - user - the authenticated user object. 

 - modules - a collection through which all Python modules and 
                 packages can be accessed. Some or many of these may not 
                 be usable in TALES, however, depending on the security 
                 policies of the template's implementation. 

Workflow specific Items: 

  - state_change - the StateChangeInfo, 
                         that provides access these methods: 
                         - getHistory(), getPortal(), getDateTime() - current-timestamp, 
                         and these attributes: 
                         - object,workflow,old_state,new_state,transition,status,kwargs 
                            (same as global-namespace-objects) that can be used from scripts. 

  - transition - the current tranistion-id (a string) 

  - status - the current status (a dict) 

  - workflow - the current workflow (an object) 

  - scripts - the scripts-folder for easy script-access (an object) 


hope this helps to better understand DCWorkflow. 
cheers Ulrich Eck