# HG changeset patch # User Sylvain Thénault # Date 1260270177 -3600 # Node ID 02273e65e1c251da31c3d5712afe3d8d6897e6b8 # Parent d80a55a024d8ddbd603703bddfc838243a09d21d duh??? diff -r d80a55a024d8 -r 02273e65e1c2 hooks/integrity.py --- a/hooks/integrity.py Tue Dec 08 12:01:50 2009 +0100 +++ b/hooks/integrity.py Tue Dec 08 12:02:57 2009 +0100 @@ -67,7 +67,7 @@ class UserIntegrityHook(IntegrityHook): __abstract__ = True - __select__ = IntegrityHook.__select__ & ~hook.regular_session() + __select__ = IntegrityHook.__select__ & hook.regular_session() class CheckCardinalityHook(UserIntegrityHook): @@ -153,6 +153,7 @@ _CheckConstraintsOp(self._cw, constraints=constraints, rdef=(self.eidfrom, self.rtype, self.eidto)) + class CheckAttributeConstraintHook(UserIntegrityHook): """check the attribute relation satisfy its constraints