composite relation, should'nt be needed
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 13 Oct 2009 12:04:36 +0200
changeset 3654 e4bed64e0ad7
parent 3653 ef71abb1e77b
child 3655 af86ab65a282
composite relation, should'nt be needed
hooks/workflow.py
--- a/hooks/workflow.py	Tue Oct 13 12:04:10 2009 +0200
+++ b/hooks/workflow.py	Tue Oct 13 12:04:36 2009 +0200
@@ -337,15 +337,3 @@
         if typewf is not None:
             _WorkflowChangedOp(self._cw, eid=self.eidfrom, wfeid=typewf.eid)
 
-
-
-class DelWorkflowHook(WorkflowHook):
-    __regid__ = 'wfdel'
-    __select__ = WorkflowHook.__select__ & entity_implements('Workflow')
-    events = ('after_delete_entity',)
-
-    def __call__(self):
-        # cleanup unused state and transition
-        self._cw.execute('DELETE State X WHERE NOT X state_of Y')
-        self._cw.execute('DELETE Transition X WHERE NOT X transition_of Y')
-