| 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 | |
|---|
| 13 | from 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 |
|---|
| 29 | from zine.database import db |
|---|
| 30 | |
|---|
| 31 | # Privilege support |
|---|
| 32 | from zine.privileges import require_privilege |
|---|
| 33 | |
|---|
| 34 | # Cache |
|---|
| 35 | from zine import cache |
|---|
| 36 | |
|---|
| 37 | # Gettext |
|---|
| 38 | from zine.i18n import gettext, ngettext, lazy_gettext, lazy_ngettext, _ |
|---|
| 39 | |
|---|
| 40 | # Plugin syste |
|---|
| 41 | from 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.