hooks/email.py
changeset 9984 793377697c81
parent 9614 e5ba755d8ca7
parent 9928 0d831b40fa48
child 9990 c84ad981fc4a
child 10184 c6dfa0d6b7d1
equal deleted inserted replaced
9979:9ccdb3751fbe 9984:793377697c81
    18 """hooks to ensure use_email / primary_email relations consistency"""
    18 """hooks to ensure use_email / primary_email relations consistency"""
    19 
    19 
    20 __docformat__ = "restructuredtext en"
    20 __docformat__ = "restructuredtext en"
    21 
    21 
    22 from cubicweb.server import hook
    22 from cubicweb.server import hook
    23 
       
    24 from logilab.common.compat import any
       
    25 
    23 
    26 
    24 
    27 class SetUseEmailRelationOp(hook.Operation):
    25 class SetUseEmailRelationOp(hook.Operation):
    28     """delay this operation to commit to avoid conflict with a late rql query
    26     """delay this operation to commit to avoid conflict with a late rql query
    29     already setting the relation
    27     already setting the relation