Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 45 lines (36 sloc) 1.423 kb
d0dc89e @justquick in with the new. i have the bits in places where i think they should be,...
justquick authored
1 # -*- coding: utf-8 -*-
2 """
3 flask
4 ~~~~~
5
6 A microframework based on Werkzeug. It's extensively documented
7 and follows best practice patterns.
8
ee8417d @mitsuhiko Late but 2010 -> 2011 in some files
authored
9 :copyright: (c) 2011 by Armin Ronacher.
d0dc89e @justquick in with the new. i have the bits in places where i think they should be,...
justquick authored
10 :license: BSD, see LICENSE for more details.
11 """
12
b879193 @mitsuhiko Set current dev version number to 0.10
authored
13 __version__ = '0.10-dev'
3d14654 @mitsuhiko Added release script
authored
14
d0dc89e @justquick in with the new. i have the bits in places where i think they should be,...
justquick authored
15 # utilities we import from Werkzeug and Jinja2 that are unused
16 # in the module but are exported as public interface.
2866ccd @mitsuhiko Switch to explicit Werkzeug imports
authored
17 from werkzeug.exceptions import abort
18 from werkzeug.utils import redirect
d0dc89e @justquick in with the new. i have the bits in places where i think they should be,...
justquick authored
19 from jinja2 import Markup, escape
20
80eb6cf @mitsuhiko Switched to relative imports in the package
authored
21 from .app import Flask, Request, Response
22 from .config import Config
23 from .helpers import url_for, jsonify, json_available, flash, \
ac13def @mitsuhiko Re-added support for folder with static files, refactored static file se...
authored
24 send_file, send_from_directory, get_flashed_messages, \
d521899 @mitsuhiko Added flask.stream_with_context
authored
25 get_template_attribute, make_response, safe_join, \
26 stream_with_context
f8f2e2d @mitsuhiko Added more tests for the new stack behavior.
authored
27 from .globals import current_app, g, request, session, _request_ctx_stack, \
28 _app_ctx_stack
086348e @mitsuhiko Added after_this_request decorator.
authored
29 from .ctx import has_request_context, has_app_context, \
30 after_this_request
80eb6cf @mitsuhiko Switched to relative imports in the package
authored
31 from .module import Module
db28217 @mitsuhiko Fixed a bug, view_args not values
authored
32 from .blueprints import Blueprint
80eb6cf @mitsuhiko Switched to relative imports in the package
authored
33 from .templating import render_template, render_template_string
9e1111c @mitsuhiko Fixed JSON availability test. This fixes #77
authored
34
e0712b4 @mitsuhiko Added support for signals
authored
35 # the signals
36 from .signals import signals_available, template_rendered, request_started, \
e71a5ff @mitsuhiko Started work on new request dispatching. Unittests not yet updated
authored
37 request_finished, got_request_exception, request_tearing_down
e0712b4 @mitsuhiko Added support for signals
authored
38
9e1111c @mitsuhiko Fixed JSON availability test. This fixes #77
authored
39 # only import json if it's available
40 if json_available:
80eb6cf @mitsuhiko Switched to relative imports in the package
authored
41 from .helpers import json
f29ec35 @mitsuhiko Backwards compatibility import
authored
42
43 # backwards compat, goes away in 1.0
44 from .sessions import SecureCookieSession as Session
Something went wrong with that request. Please try again.