hooks/workflow.py
branchstable
changeset 4719 aaed3f813ef8
parent 4644 021035b9a7ab
child 4835 13b0b96d7982
--- a/hooks/workflow.py	Fri Feb 26 13:12:01 2010 +0100
+++ b/hooks/workflow.py	Fri Feb 26 13:19:14 2010 +0100
@@ -13,7 +13,6 @@
 from cubicweb.interfaces import IWorkflowable
 from cubicweb.selectors import implements
 from cubicweb.server import hook
-from cubicweb.entities.wfobjs import WorkflowTransition
 
 
 def _change_state(session, x, oldstate, newstate):
@@ -52,7 +51,6 @@
     """try to fire auto transition after state changes"""
 
     def precommit_event(self):
-        session = self.session
         entity = self.entity
         autotrs = list(entity.possible_transitions('auto'))
         if autotrs: