# HG changeset patch # User Pierre-Yves David # Date 1343748774 -7200 # Node ID c6ab3b335a22bdfa6f3ffa40fbb6c597c1a794ea # Parent b922dd08eb791bd6626d204cad49d37d8e38621f [composite] apply composite on new enty too (closes #2450679) Before this changesets, automatic deletion did not applied to entity created in the same transaction. This patch remove this filtering in the dedicated operation. The original filtering where introduced by 5d889b4928bb but no rational where found for this changes. The former behavior is seen as inconsistent and creates bug in some cubes. diff -r b922dd08eb79 -r c6ab3b335a22 hooks/integrity.py --- a/hooks/integrity.py Tue Jul 31 17:25:28 2012 +0200 +++ b/hooks/integrity.py Tue Jul 31 17:32:54 2012 +0200 @@ -301,11 +301,10 @@ def precommit_event(self): session = self.session pendingeids = session.transaction_data.get('pendingeids', ()) - neweids = session.transaction_data.get('neweids', ()) eids_by_etype_rtype = {} for eid, rtype in self.get_data(): - # don't do anything if the entity is being created or deleted - if not (eid in pendingeids or eid in neweids): + # don't do anything if the entity is being deleted + if eid not in pendingeids: etype = session.describe(eid)[0] key = (etype, rtype) if key not in eids_by_etype_rtype: