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