hooks/notification.py
branchstable
changeset 4721 8f63691ccb7f
parent 4719 aaed3f813ef8
child 4835 13b0b96d7982
equal deleted inserted replaced
4720:ddf4f19eb07a 4721:8f63691ccb7f
    27 class NotificationHook(hook.Hook):
    27 class NotificationHook(hook.Hook):
    28     __abstract__ = True
    28     __abstract__ = True
    29     category = 'notification'
    29     category = 'notification'
    30 
    30 
    31     def select_view(self, vid, rset, row=0, col=0):
    31     def select_view(self, vid, rset, row=0, col=0):
    32         return self._cw.vreg['views'].select_or_none(vid, self._cw,
    32         return self._cw.vreg['views'].select_or_none(vid, self._cw, rset=rset,
    33                                                      rset=rset, row=0, col=0)
    33                                                      row=row, col=col)
    34 
    34 
    35 
    35 
    36 class StatusChangeHook(NotificationHook):
    36 class StatusChangeHook(NotificationHook):
    37     """notify when a workflowable entity has its state modified"""
    37     """notify when a workflowable entity has its state modified"""
    38     __regid__ = 'notifystatuschange'
    38     __regid__ = 'notifystatuschange'