hooks/integrity.py
changeset 3731 d4af295515c0
parent 3728 c23add03ff4d
child 3890 d7a270f50f54
equal deleted inserted replaced
3730:d6f95bd1032d 3731:d4af295515c0
    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     __abstract__ = True
    67     __select__ = IntegrityHook.__select__ & ~hook.regular_session()
    68     __select__ = IntegrityHook.__select__ & ~hook.regular_session()
    68 
    69 
    69 
    70 
    70 class CheckCardinalityHook(UserIntegrityHook):
    71 class CheckCardinalityHook(UserIntegrityHook):
    71     """check cardinalities are satisfied"""
    72     """check cardinalities are satisfied"""