hooks/integrity.py
changeset 4027 02273e65e1c2
parent 4024 6a14cff373c3
child 4075 e710f4052bd6
--- 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