equal
deleted
inserted
replaced
41 `viewargs` is an optional dictionary containing extra argument to be given |
41 `viewargs` is an optional dictionary containing extra argument to be given |
42 to :meth:`~cubicweb.sobjects.notification.NotificationView.render_and_send` |
42 to :meth:`~cubicweb.sobjects.notification.NotificationView.render_and_send` |
43 """ |
43 """ |
44 if viewargs is None: |
44 if viewargs is None: |
45 viewargs = {} |
45 viewargs = {} |
46 notif_op = __RenderAndSendNotificationOp.get_instance(session) |
46 notif_op = _RenderAndSendNotificationOp.get_instance(session) |
47 notif_op.add_data((view, viewargs)) |
47 notif_op.add_data((view, viewargs)) |
48 |
48 |
49 |
49 |
50 class _RenderAndSendNotificationOp(hook.DataOperationMixIn, hook.Operation): |
50 class _RenderAndSendNotificationOp(hook.DataOperationMixIn, hook.Operation): |
51 """End of the notification chain. Do render and send views after commit |
51 """End of the notification chain. Do render and send views after commit |