Beispiel #1
0
def show():
    import os
    template = EmailTemplate(db, auth)
    template.render(None)
    html_template = template.show(request.args(0))
    if html_template is None:
        raise PRETTYHTTP(403, T("Page not found"))
    return XML(render(html_template, path=os.path.join(request.folder, 'views'), context=globals()))
Beispiel #2
0
def manage():
    template = EmailTemplate(db, auth)
    template.render('/admin/templates/manage.html')
    return dict(grid=template.grid())