hooks/email.py
changeset 3721 a02f7df5bbec
parent 3431 6944a92c16f2
child 4252 6c4f109c2b03
equal deleted inserted replaced
3720:5376aaadd16b 3721:a02f7df5bbec
     7 """
     7 """
     8 __docformat__ = "restructuredtext en"
     8 __docformat__ = "restructuredtext en"
     9 
     9 
    10 from cubicweb.server import hook
    10 from cubicweb.server import hook
    11 from cubicweb.server.repository import ensure_card_respected
    11 from cubicweb.server.repository import ensure_card_respected
       
    12 
       
    13 from logilab.common.compat import any
       
    14 
    12 
    15 
    13 class SetUseEmailRelationOp(hook.Operation):
    16 class SetUseEmailRelationOp(hook.Operation):
    14     """delay this operation to commit to avoid conflict with a late rql query
    17     """delay this operation to commit to avoid conflict with a late rql query
    15     already setting the relation
    18     already setting the relation
    16     """
    19     """