Back to index

plone3  3.1.7
Classes | Functions
DCWorkflow.Expression Namespace Reference

Classes

class  SafeMapping
class  StateChangeInfo

Functions

def createExprContext

Function Documentation

An expression context provides names for TALES expressions.

Definition at line 124 of file Expression.py.

00124 
00125 def createExprContext(sci):
00126     '''
00127     An expression context provides names for TALES expressions.
00128     '''
00129     ob = sci.object
00130     wf = sci.workflow
00131     container = aq_parent(aq_inner(ob))
00132     data = {
00133         'here':         ob,
00134         'object':       ob,
00135         'container':    container,
00136         'folder':       container,
00137         'nothing':      None,
00138         'root':         ob.getPhysicalRoot(),
00139         'request':      getattr( ob, 'REQUEST', None ),
00140         'modules':      SecureModuleImporter,
00141         'user':         getSecurityManager().getUser(),
00142         'state_change': sci,
00143         'transition':   sci.transition,
00144         'status':       sci.status,
00145         'kwargs':       sci.kwargs,
00146         'workflow':     wf,
00147         'scripts':      wf.scripts,
00148         }
00149     return getEngine().getContext(data)
00150 

Here is the call graph for this function: