equal
deleted
inserted
replaced
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' |