cubicweb/server/hook.py
branch3.27
changeset 12869 50db521e3e53
parent 12833 c69421aece24
child 12870 2695357a8bfc
equal deleted inserted replaced
12867:50122959acbc 12869:50db521e3e53
   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
   525     events: Union[None, Tuple[str], Tuple[str, str]] = None
   526     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