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.
2015-03-23 15:17:19 +00:00
Chris Rebert
fe6bcffdad
Document required signature of before_first_request-decorated functions
2015-02-05 12:45:59 -08:00
Chris Rebert
6a2524634d
Document that the return values of teardown functions are ignored
2015-02-05 12:45:11 -08:00
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.
2015-02-05 12:38:34 -08:00
Chris Rebert
a45fce8496
fix grammar in preprocess_request() docstring
2015-02-05 12:35:25 -08:00
Christopher Bunn
d60e13436d
Fixed minor docstring typo for teardown_request()
2015-01-28 21:04:43 -05:00
Parkayun
33534bb4a9
Happy New Year 2015
2015-01-02 11:35:00 +09:00
Michael Hall
98b155c65d
Fixed #1288 : app.add_url_rule() should look for OPTIONS methods in a case-insensitive manner
2014-12-26 08:58:35 -05:00
defuz
1501b79293
docs: :exc:TypeError
2014-11-05 08:16:27 +03:00
defuz
d338dc8a13
docs: `.html, .py`
2014-11-05 07:52:04 +03:00
defuz
663802e976
docs: `with, for, self`
2014-11-05 07:39:54 +03:00
defuz
ad011bc32d
docs: `DEBUG, SERVER_NAME, PATH_INFO`
2014-11-05 07:10:49 +03:00
defuz
02694d609f
docs: :command:pip, :option:--debug
2014-11-05 07:03:55 +03:00
defuz
a8f570cc62
docs: :file:app.py, :file:yourapp/templates
2014-11-05 06:45:22 +03:00
defuz
3fa4fd0908
docs: http method names like `GET and POST`
2014-11-05 06:13:01 +03:00
defuz
8284217593
docs: `True, False and None`
2014-11-05 06:04:58 +03:00
Markus Unterwaditzer
a1b273658d
Merge pull request #1222 from defuz/templates_auto_reload-eq-none
...
Set TEMPLATE_AUTO_RELOAD default value to None
2014-11-02 20:46:48 +01:00
Petr Zemek
d1423b3e16
Unify the uses of "file system" vs "fileystem".
...
Use "filesystem", which is more prevailing in the source code.
2014-10-27 11:33:45 +01:00
Petr Zemek
ec3d5800f2
Put two spaces before inline comments when there is only one space.
...
PEP8 (E261) suggests to use at least two spaces before inline comments.
2014-10-27 11:24:15 +01:00
defuz
f88765d504
set TEMPLATE_AUTO_RELOAD default value to None
2014-10-26 18:28:12 +03:00
Matt Wright
986b92203a
Add CHANGES entry and versionchanged entry to docstring
2014-10-20 21:21:30 +02:00
Matt Wright
44c025f552
Add a little documentation regarding kwargs in the app.test_client() method
2014-10-20 21:21:30 +02:00
Matt Wright
fed6fd32d8
Pass keyword args from test_client method to client class constructor
2014-10-20 21:21:30 +02:00
Armin Ronacher
c09a4317e4
Record blueprint registration order.
2014-09-03 20:12:06 +02:00
Armin Ronacher
bafc139810
Added EXPLAIN_TEMPLATE_LOADING to help people debug templates not being loaded.
2014-09-03 17:57:51 +02:00
Armin Ronacher
817b72d484
Removed deprecated module functionality
2014-08-27 01:12:33 +02:00
Armin Ronacher
84ad89ffa4
Always log now, even if debug is off.
2014-08-27 01:08:19 +02:00
Daniel Neuhäuser
7d57c29f7a
Merge pull request #1156 from brwr/brwr/fix-documentation-typo
...
Add missing `of` to documentation.
2014-08-26 12:29:57 +02:00
Armin Ronacher
9bf36151d9
Removed dead import
2014-08-26 10:29:07 +02:00
James Brewer
20645d9b86
Add missing of to documentation.
2014-08-25 22:18:08 -07:00
Armin Ronacher
932f7d7cbb
Refactored the scripting interface greatly.
2014-08-25 16:50:22 +02:00
Shalabh Aggarwal
1f5927eee2
Fixed a small typo with flask.g docstring
2014-05-14 09:15:34 +05:30
Armin Ronacher
7321a480ea
Simplified click integration a bit
2014-05-12 02:16:38 +02:00
Armin Ronacher
5693b9d730
Merge branch 'pr/839'
2014-05-07 21:53:59 +02:00
Armin Ronacher
3bdb90f06b
Added click support to Flask
2014-04-28 13:26:23 +02:00
mjfroehlich
15d8af52db
Fix minor typo
2014-04-13 22:25:10 +02:00
Armin Ronacher
d4b3d16c14
Better support for namespace packages.
2014-04-11 19:59:54 +02:00
Kenneth Reitz
9427e16567
Merge pull request #707 from xsleonard/patch-1
...
Mention register_error_handler in errorhandler doc
2014-03-21 17:03:02 -04:00
Kenneth Reitz
7f5b6c692d
Merge pull request #876 from defuz/templates-auto-reload
...
Add TEMPLATES_AUTO_RELOAD config key
2014-03-21 16:43:20 -04:00
Charles-Axel Dein
dfae2679a6
Clarify the after_request argument
...
Make it a bit clearer that it's an instance of response_class that is
expected, not the actual response_class class.
2014-03-05 15:22:59 -08:00
Daniel Neuhäuser
3f8e29b12c
Add Flask.config_class to changelog
2014-02-20 19:15:42 +01:00
Daniel Neuhäuser
66e51d5be7
Merge branch 'master' of https://github.com/Xion/flask into Xion-master
...
Conflicts:
flask/testsuite/config.py
2014-02-20 19:12:56 +01:00
Armin Ronacher
a9503580d2
Merge branch '0.10-maintenance'
2014-02-09 13:27:05 +00:00
Alexis Svinartchouk
280d865960
fix issue #879 and add a test for it
...
Signed-off-by: Armin Ronacher <armin.ronacher@active-4.com>
2014-02-09 13:22:05 +00:00
Armin Ronacher
a8f6f7413f
Merge branch '0.10-maintenance'
2014-02-08 17:39:46 +00:00
Armin Ronacher
46c24da016
Make before_first_request a decorator
2014-02-08 17:39:26 +00:00
Armin Ronacher
ae45aed8d6
Removed an unnecessary newline
2014-02-08 17:36:12 +00:00
Armin Ronacher
c9bf907037
Merge pull request #938 from ahlen/response-with-headers-without-status
...
Enable tuple responses with headers without status
2014-02-08 17:32:01 +00:00
Daniel Neuhäuser
d517f35d60
Merge branch '0.10-maintenance'
2014-01-02 19:21:55 +01:00
Daniel Neuhäuser
52098e1e4f
Happy New Year 2014
2014-01-02 19:21:07 +01:00