cubicweb/server/hook.py
changeset 12833 c69421aece24
parent 12832 7d3299d6e655
child 12869 50db521e3e53
equal deleted inserted replaced
12832:7d3299d6e655 12833:c69421aece24
   520 
   520 
   521       else your hooks will be called madly, whatever the event.
   521       else your hooks will be called madly, whatever the event.
   522     """
   522     """
   523     __select__ = enabled_category()
   523     __select__ = enabled_category()
   524     # set this in derivated classes
   524     # set this in derivated classes
   525     category = None
       
   526     events: Union[None, Tuple[str], Tuple[str, str]] = None
   525     events: Union[None, Tuple[str], Tuple[str, str]] = None
       
   526     category: Union[None, str] = None
   527     order = 0
   527     order = 0
   528     # stop pylint from complaining about missing attributes in Hooks classes
   528     # stop pylint from complaining about missing attributes in Hooks classes
   529     eidfrom = eidto = entity = rtype = repo = None
   529     eidfrom = eidto = entity = rtype = repo = None
   530 
   530 
   531     @classmethod
   531     @classmethod