Zine

open source content publishing system


source: zine/api.py @ 1279:088d2f519391

Revision 1279:088d2f519391, 967 bytes checked in by Georg Brandl <georg@…>, 2 years ago (diff)

Update copyright notices.

Line 
1# -*- coding: utf-8 -*-
2"""
3    zine.api
4    ~~~~~~~~
5
6    Module for plugins and core. Star import this to get
7    access to all the important helper functions.
8
9    :copyright: (c) 2010 by the Zine Team, see AUTHORS for more details.
10    :license: BSD, see LICENSE for more details.
11"""
12
13from zine.application import (
14    # Event handling
15    emit_event, iter_listeners,
16
17    # Request/Response
18    Response, get_request, url_for, shared_url, add_link, add_meta,
19    add_script, add_header_snippet,
20
21    # Template helpers
22    render_template, render_response,
23
24    # Appliation helpers
25    get_application
26)
27
28# Database
29from zine.database import db
30
31# Privilege support
32from zine.privileges import require_privilege
33
34# Cache
35from zine import cache
36
37# Gettext
38from zine.i18n import gettext, ngettext, lazy_gettext, lazy_ngettext, _
39
40# Plugin syste
41from zine.pluginsystem import SetupError
42
43
44__all__ = list(x for x in locals() if x == '_' or not x.startswith('_'))
Note: See TracBrowser for help on using the repository browser.