# HG changeset patch # User Sylvain Thénault # Date 1255428276 -7200 # Node ID e4bed64e0ad7f280600a7ab91bf0bd6ecc336765 # Parent ef71abb1e77bfdb27aba57874079dde3f2d9fb33 composite relation, should'nt be needed diff -r ef71abb1e77b -r e4bed64e0ad7 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') -