Alexander Pantyukhin
d53d5c732b
before_render_template signal
10 years ago
Markus Unterwaditzer
554c5b965a
Fix #1477
10 years ago
GunWoo Choi
c65b32ba1d
Update title of docstring in flask.cli
10 years ago
Markus Unterwaditzer
bc4c1777e9
Document static_folder
10 years ago
Keyan Pishdadian
805692108a
Update send_file() docs to clarify encoding requirement #1286
10 years ago
Markus Unterwaditzer
d13a1b363e
Rename jinja_env_class
...
Inspired by #1056
10 years ago
Markus Unterwaditzer
2446ca63a8
0.11 => 1.0
10 years ago
Joshua Carp
348bf52188
Handle empty deque on errorhandler lookup.
...
After registering a custom errorhandler by exception class, raising any
unhandled exception in a view function swallows the error and instead
throws an `IndexError` on trying to look up the appropriate handler.
This patch avoids the uninformative `IndexError` and preserves the
original exception by looping until the deque of classes is empty, not
forever.
10 years ago
Markus Unterwaditzer
0d19fa0a06
Clarify some docs
...
Fix #1476
10 years ago
Wang Haowei
be45a608e3
fix docstring for _find_errorhandler
10 years ago
Matthias Bussonnier
2de525c720
importlib deprecated in 3.5.
...
Replace the use of importlib by types.ModuleType that seem to be
available since at least 2.6
closes gh-1449
10 years ago
ning.xie
1b7fad3716
fix pep8 with logging.py
10 years ago
Markus Unterwaditzer
7d506f2408
Recursively traverse MRO of exception
10 years ago
Phil Schaf
b31252db55
addressed a few review concerns
10 years ago
Phil Schaf
8c054f04b8
added caching
10 years ago
Phil Schaf
fd8e6b26f9
removed ExceptionHandlerDict
10 years ago
Phil Schaf
0e44cca8e3
Removed 500 not being registerable for blueprints
10 years ago
Phil Schaf
aa4700c276
More verbose message for old broken behavior
10 years ago
Phil Schaf
a6c6cc18f5
Removed unused http code get function
10 years ago
Phil Schaf
7126a22334
Switched to userdict for obsolete Python versions
10 years ago
Phil Schaf
eae48d97b0
Fixed and intuitivized exception handling
10 years ago
ThiefMaster
08ac3aa4e3
Allow custom jinja environments
...
This is useful e.g. when using the new Jinja Environment
attributes added in mitsuhiko/jinja2#404
10 years ago
Martijn Pieters
ec0d208bc1
Switch away from using None as default value for the exception when tearing down a context.
...
When an exception has been handled when using the request / app context in a with statement, `sys.exc_info()` will still contain the exception information even though it has been handled already. The `__exit__` methods pass in `None` for the exception value in that case, which needs to be distinguisable from the default value for the `exc` parameter. Use a dedicated singleton sentinel value instead.
10 years ago
Markus Unterwaditzer
94a3968d69
Untangle logic a bit
10 years ago
Keyan Pishdadian
7b080355f5
Remove unused import and clean control flow
10 years ago
Keyan Pishdadian
44da905cb7
Change format index to support Python 2.6
10 years ago
Keyan Pishdadian
1cd9e91810
Changed error message to include actual exception contents
10 years ago
Keyan Pishdadian
290c371eb1
Change to hardcoding exception contents to support Python3 json loading exception format
10 years ago
Keyan Pishdadian
19df249c89
Change logic to support when current_app is not available
10 years ago
Keyan Pishdadian
82b7983b2a
Make exception contents conditional on DEBUG
10 years ago
Keyan Pishdadian
5d3e7b737c
Add exception details to response
10 years ago
Edward Z. Yang
29f7c10a5d
Remove bad security advice about send_file.
...
Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
10 years ago
ThiefMaster
ddf0dfa895
Use PEP440-compatible dev version
10 years ago
Chris Rebert
fe6bcffdad
Document required signature of before_first_request-decorated functions
10 years ago
Chris Rebert
6a2524634d
Document that the return values of teardown functions are ignored
10 years ago
Chris Rebert
eccee36964
Document required signature of before_request functions
...
Unless you happened to also read preprocess_request()'s docstring,
it wasn't not obvious that return values from these functions are treated as
response values.
10 years ago
Chris Rebert
a45fce8496
fix grammar in preprocess_request() docstring
10 years ago
Christopher Bunn
d60e13436d
Fixed minor docstring typo for teardown_request()
10 years ago
Ben Jones
61263e08f9
Add datetime.date support to JSONEncoder
10 years ago
Parkayun
33534bb4a9
Happy New Year 2015
10 years ago
Armin Ronacher
d931216ade
Hide a few traceback frames from the cli interface.
10 years ago
Michael Hall
98b155c65d
Fixed #1288 : app.add_url_rule() should look for OPTIONS methods in a case-insensitive manner
10 years ago
Marc Abramowitz
d9402fc0c0
Make `jsonify` terminate responses with a newline
...
This came up in the context of
https://github.com/kennethreitz/httpbin/issues/168
10 years ago
Mieszko
5c7557917b
Minor typos fixed
10 years ago
defuz
1501b79293
docs: :exc:`TypeError`
10 years ago
defuz
d338dc8a13
docs: ``.html``, ``.py``
10 years ago
defuz
d4b9b9854c
docs: :mimetype:`application/json`
10 years ago
defuz
663802e976
docs: ``with``, ``for``, ``self``
10 years ago
defuz
17eee81da0
docs: ``Flask-Uploads``, ``X-Forwarded-Host``
10 years ago
defuz
ad011bc32d
docs: ``DEBUG``, ``SERVER_NAME``, ``PATH_INFO``
10 years ago