hooks/notification.py
changeset 8956 c81e1c463dbf
parent 8928 f5b40b66d36e
child 8957 bf4003760e02
equal deleted inserted replaced
8955:8ef2d90512b5 8956:c81e1c463dbf
    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