hooks/workflow.py
changeset 4024 6a14cff373c3
parent 4003 b9436fe77c9e
child 4075 e710f4052bd6
equal deleted inserted replaced
4023:eae23c40627a 4024:6a14cff373c3
   123             # reached an exit point
   123             # reached an exit point
   124             msg = session._('exiting from subworkflow %s')
   124             msg = session._('exiting from subworkflow %s')
   125             msg %= session._(forentity.current_workflow.name)
   125             msg %= session._(forentity.current_workflow.name)
   126             session.transaction_data[(forentity.eid, 'subwfentrytr')] = True
   126             session.transaction_data[(forentity.eid, 'subwfentrytr')] = True
   127             # XXX iirk
   127             # XXX iirk
   128             req = forentity.req
   128             req = forentity._cw
   129             forentity.req = session.super_session
   129             forentity._cw = session.super_session
   130             try:
   130             try:
   131                 trinfo = forentity.change_state(tostate, msg, u'text/plain',
   131                 trinfo = forentity.change_state(tostate, msg, u'text/plain',
   132                                                 tr=wftr)
   132                                                 tr=wftr)
   133             finally:
   133             finally:
   134                 forentity.req = req
   134                 forentity._cw = req
   135 
   135 
   136 
   136 
   137 # hooks ########################################################################
   137 # hooks ########################################################################
   138 
   138 
   139 class WorkflowHook(hook.Hook):
   139 class WorkflowHook(hook.Hook):