--- 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