hooks/workflow.py
changeset 4024 6a14cff373c3
parent 4003 b9436fe77c9e
child 4075 e710f4052bd6
--- a/hooks/workflow.py	Tue Dec 08 10:58:56 2009 +0100
+++ b/hooks/workflow.py	Tue Dec 08 11:12:42 2009 +0100
@@ -125,13 +125,13 @@
             msg %= session._(forentity.current_workflow.name)
             session.transaction_data[(forentity.eid, 'subwfentrytr')] = True
             # XXX iirk
-            req = forentity.req
-            forentity.req = session.super_session
+            req = forentity._cw
+            forentity._cw = session.super_session
             try:
                 trinfo = forentity.change_state(tostate, msg, u'text/plain',
                                                 tr=wftr)
             finally:
-                forentity.req = req
+                forentity._cw = req
 
 
 # hooks ########################################################################