hooks/notification.py
changeset 2900 9d65e0350aa1
parent 2847 c2ee28f4d4b1
child 3023 7864fee8b4ec
equal deleted inserted replaced
2899:3f7ce804d1e5 2900:9d65e0350aa1
    26 class NotificationHook(hook.Hook):
    26 class NotificationHook(hook.Hook):
    27     __abstract__ = True
    27     __abstract__ = True
    28     category = 'notification'
    28     category = 'notification'
    29 
    29 
    30     def select_view(self, vid, rset, row=0, col=0):
    30     def select_view(self, vid, rset, row=0, col=0):
    31         return self._cw.vreg['views'].select_object(vid, self._cw,
    31         return self._cw.vreg['views'].select_or_none(vid, self._cw,
    32                                                        rset=rset, row=0, col=0)
    32                                                      rset=rset, row=0, col=0)
    33 
    33 
    34 
    34 
    35 class StatusChangeHook(NotificationHook):
    35 class StatusChangeHook(NotificationHook):
    36     """notify when a workflowable entity has its state modified"""
    36     """notify when a workflowable entity has its state modified"""
    37     __id__ = 'notifystatuschange'
    37     __id__ = 'notifystatuschange'