hooks/integrity.py
changeset 3728 c23add03ff4d
parent 3727 74bd06656bcc
child 3731 d4af295515c0
equal deleted inserted replaced
3727:74bd06656bcc 3728:c23add03ff4d
    62 class IntegrityHook(hook.Hook):
    62 class IntegrityHook(hook.Hook):
    63     __abstract__ = True
    63     __abstract__ = True
    64     category = 'integrity'
    64     category = 'integrity'
    65 
    65 
    66 class UserIntegrityHook(IntegrityHook):
    66 class UserIntegrityHook(IntegrityHook):
    67     __select__ = IntegrityHook.__select__ & ~regular_session()
    67     __select__ = IntegrityHook.__select__ & ~hook.regular_session()
    68 
    68 
    69 
    69 
    70 class CheckCardinalityHook(UserIntegrityHook):
    70 class CheckCardinalityHook(UserIntegrityHook):
    71     """check cardinalities are satisfied"""
    71     """check cardinalities are satisfied"""
    72     __regid__ = 'checkcard'
    72     __regid__ = 'checkcard'