Armin Ronacher
96ec24f6e0
Fast path for disabled template load explain.
9 years ago
Armin Ronacher
6aee9f6d77
Resolve state issue for url_for with forced scheme
...
This fixes #1596
9 years ago
Jannis Leidel
88500f5cc7
Forward ported CLI tests from Flask-CLI and fixed a bug with the CLI's name. ( #1806 )
...
* Forward port the CLI tests from Flask-CLI.
* Make sure the parameter passed to the CLI's AppGroup is the app's name, not the app itself.
9 years ago
Benjamin Dopplinger
9f4c569c83
Fix "with" formatting in doc
9 years ago
Miguel Grinberg
de25e98f91
minor rewording of get_json documentation for clarity ( #1781 )
9 years ago
Steven Loria
2bf477cfea
Add JSONIFY_MIMETYPE configuration variable ( #1728 )
...
Allow jsonify responses' mimetype to be configured
9 years ago
Daniel Quinn
740c42217c
The comment didn't make any sense ( #1777 )
...
Fix doc comment for View.methods
9 years ago
Steffen Prince
6e91498e64
docs: run() should not be used in production
...
Refs #1102
9 years ago
David Hou
9f1be8e795
Raise BadRequest if static file name is invalid
...
* Raise BadRequest if static file name is invalid
* Clean up syntax a bit
* Remove unnecessary close()
9 years ago
Markus Unterwaditzer
d3d8a4694a
Deprecate flask.ext
...
* Add deprecation warning to ext pkg
* Add docs on deprecation of flask.ext
* Improve deprecation warnings
* Add headers for better distinction, fix ordering issue of paragraphs
9 years ago
Shipeng Feng
cc536c8a7b
Fixed stream_with_context if decorated function has parameters
9 years ago
lord63
07fdd1930b
Update app.py
9 years ago
lord63
6d0bbd627c
Fix typo
...
* Use the compatible way to handle the exception. You can find the
source code wsgi_app in app.py, and it use the compatible way, so update it
* Fix typo in config.py
* Fix typo in app.py
9 years ago
Adrian
a4df0fbb39
Add missing return to g.setdefault
9 years ago
David Lord
992d9be96e
clean up
9 years ago
Jeff Widman
0edf0a0e3a
Cleanup jsonify() function
...
Cleanup some leftover stuff from #1671 . PEP8 spacing, args/kwargs don't need to be converted to list/dict, and Sphinx formatting.
9 years ago
Jeff Widman
daceb3e3a0
Add support for serializing top-level arrays to JSON
...
Fix #170 , #248 , #510 , #673 , #1177
9 years ago
nivm
edb65cc0f0
remove 'flask' from etags to obscure server technologies
9 years ago
Aviv Cohn
826d7475cd
Clarified the docstring in method Flask.preprocess_request.
...
The doc now clearly states that the method invokes two set of hook
functions, and how these are filtered before execution.
9 years ago
Miguel Grinberg
952a6c8989
Werkzeug should not block propagated exceptions from Flask
9 years ago
lord63
b55bc0baa2
Remove with_statement in flask/ctx.py
9 years ago
Ivan Velichko
daa3f272da
Allow to specify subdomain and/or url_scheme in app.test_request_context()
9 years ago
lord63
1d49343bb1
Fix typo in app_ctx_globals_class doc in app.py
9 years ago
Eric Yang
7f678aaf5a
Fix a typo
...
Maybe this is a typo?
9 years ago
Timo Furrer
d526932a09
support timedelta for SEND_FILE_MAX_AGE_DEFAULT config variable
9 years ago
Armin Ronacher
1ac4156016
Fixed some lint warnings
9 years ago
Jimmy McCarthy
5505827a4b
provide_automatic_options as explicit arg
...
In add_url_rule, break provide_automatic_options out to an explicit kwarg, and
add notes to the docstring.
9 years ago
Mathias J. Hennig
b3767ae59f
Addressing feedback from pull request
10 years ago
Mathias J. Hennig
c8f19f0afc
Reimplement function with_metaclass()
10 years ago
lobeck
128bc76af0
Revert "make external_url_handler example py3 compliant"
10 years ago
Christian Becker
5da31f8af3
fix UnboundLocalError in handle_url_build_error
...
- caused by changes in the execution model of python 3 where the alias of an except clause is cleared on exit of the except
10 years ago
Christian Becker
93fe1d54bd
make external_url_handler example py3 compliant
...
- a raises statement with multiple values is no longer allowed in python 3
10 years ago
Jimmy McCarthy
011b129b6b
Add kwarg to disable auto OPTIONS on add_url_rule
...
Adds support for a kwarg `provide_automatic_options` on `add_url_rule`, which
lets you turn off the automatic OPTIONS response on a per-URL basis even if
your view functions are functions, not classes (so you can't provide attrs
on them).
10 years ago
Alan Hamlett
99c99c4c16
Enable autoescape for `render_template_string`
10 years ago
Alan Hamlett
e4f635f8d7
remove whitespace at end of lines
10 years ago
ThiefMaster
6af9690ae9
Remove the deprecated Flask.modules property
10 years ago
ThiefMaster
bbaf20de7c
Add pop and setdefault to AppCtxGlobals
10 years ago
Alexander Pantyukhin
5e12748d0e
Ignore before_render_template return values
10 years ago
Alexander Pantyukhin
883f82f261
template overrides handling changed
10 years ago
Alexander Pantyukhin
967907ee81
before_render_template signal can override render template.
10 years ago
Alexander Pantyukhin
1fbeb337c4
fix endline in the signal.py
10 years ago
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