Beispiel #1
0
def notify_created(plugin, room, room_assoc, event, user):
    """Notifies about the creation of a vc_room.

    :param room: the vc_room
    :param event: the event
    :param user: the user performing the action
    """

    name = get_overridable_template_name('emails/created.html', plugin, core_prefix='vc/')
    tpl = get_template_module(name, plugin=plugin, vc_room=room, event=event, vc_room_event=room_assoc, user=user,
                              linked_to_title=get_linked_to_description(room_assoc))
    _send('create', user, plugin, event, room, tpl)
Beispiel #2
0
def notify_created(plugin, room, room_assoc, event, user):
    """Notifies about the creation of a vc_room.

    :param room: the vc_room
    :param event: the event
    :param user: the user performing the action
    """
    with plugin.plugin_context():
        tpl = get_plugin_template_module('emails/created.html', plugin=plugin, vc_room=room, event=event,
                                         vc_room_event=room_assoc, user=user,
                                         linked_to_title=get_linked_to_description(room_assoc))
        _send('create', user, plugin, event, room, tpl.get_subject(), tpl.get_body())
Beispiel #3
0
def notify_created(plugin, room, room_assoc, event, user):
    """Notifies about the creation of a vc_room.

    :param room: the vc_room
    :param event: the event
    :param user: the user performing the action
    """

    name = get_overridable_template_name('emails/created.html',
                                         plugin,
                                         core_prefix='vc/')
    tpl = get_template_module(
        name,
        plugin=plugin,
        vc_room=room,
        event=event,
        vc_room_event=room_assoc,
        user=user,
        linked_to_title=get_linked_to_description(room_assoc))
    _send('create', user, plugin, event, room, tpl)