Ejemplo n.º 1
0
def service_created(service, event):
    """Add all default templates to the service.
    """
    service._sitename = service.get_root().get_title_or_id()
    for identifier in [
        'subscription_confirmation_template.pt',
        'already_subscribed_template.pt',
        'cancellation_confirmation_template.pt',
        'not_subscribed_template.pt',
        'publication_event_template.pt']:
        add_helper(service, identifier, globals(), pt_add_helper, True)
Ejemplo n.º 2
0
def add_forum_notification_tempate(service, event):
    add_helper(service, 'forum_event_template.pt', globals(), pt_add_helper,
               True)
Ejemplo n.º 3
0
def add_forum_notification_tempate(service, event):
    add_helper(
        service, 'forum_event_template.pt', globals(), pt_add_helper, True)