# HG changeset patch # User Sylvain Thénault # Date 1259952830 -3600 # Node ID 4edff8bce44b1cb76c8a4cf3e34b637b49c2b197 # Parent bc31ede2085de6512b97b4e9a7853c04ef5c2221 should delete state once replacement has been done diff -r bc31ede2085d -r 4edff8bce44b entities/wfobjs.py --- a/entities/wfobjs.py Fri Dec 04 19:45:58 2009 +0100 +++ b/entities/wfobjs.py Fri Dec 04 19:53:50 2009 +0100 @@ -164,6 +164,7 @@ {'os': todelstate.eid, 'ns': newstate.eid}, 's') execute('SET X to_state NS WHERE X to_state OS, OS eid %(os)s, NS eid %(ns)s', {'os': todelstate.eid, 'ns': newstate.eid}, 's') + todelstate.delete() class BaseTransition(AnyEntity):