grahamlutz
cf425403c8
Remove duplicate word from docstring
2017-06-10 14:53:40 +02:00
David Lord
235c830759
document inherited attributes for Flask and Blueprint
...
closes #480
[ci skip]
2017-06-06 07:51:52 -07:00
David Lord
b5f4c52150
don't cache error handlers for exception mro
...
closes #2267 , closes #1433
2017-06-05 06:24:08 -07:00
David Lord
859d9a9d5c
show nice message when registering error handler for unknown code
...
clean up error handler docs
closes #1837
2017-05-31 18:04:08 -07:00
David Lord
8f3563cf79
fix operator precedence
2017-05-29 19:46:33 -07:00
David Lord
42905b8a55
set description for trap as well as debug
...
test for key error description
2017-05-29 19:41:07 -07:00
David Lord
045dccaefb
make debugging bad key errors easier
...
* TRAP_BAD_REQUEST_ERRORS is enabled by default in debug mode
* BadRequestKeyError has the key in the description in debug mode
closes #382
2017-05-29 19:08:25 -07:00
David Lord
b9c8c9bad1
deprecate app session methods in favor of session_interface
...
ref #1182
2017-05-29 13:35:02 -07:00
David Lord
4a53840df0
APPLICATION_ROOT defaults to '/'
2017-05-28 14:08:53 -07:00
David Lord
a37f675ccb
Merge remote-tracking branch 'origin/0.10-maintenance'
...
refactor make_test_environ_builder
2017-05-28 07:25:15 -07:00
David Lord
e206764955
Merge pull request #2314 from cerickson/errorhandler
...
Added support for generic HTTPException handlers on app and blueprints
2017-05-23 11:51:17 -07:00
David Lord
cd593bf117
Merge pull request #2307 from neilvictorgrey/master
...
For Issue #2286 : Update unittest references
2017-05-23 11:50:31 -07:00
cerickson
361dba7e3a
removed dupe text from merge
2017-05-23 10:49:01 -07:00
cerickson
4f815015b8
Added support for generic HTTPException handlers on app and blueprints
...
Error handlers are now returned in order of blueprint:code, app:code,
blueprint:HTTPException, app:HTTPException, None
Corresponding tests also added.
Ref issue #941 , pr #1383 , #2082 , #2144
2017-05-23 10:45:42 -07:00
Florian Sachs
668061a5fc
Register errorhandlers for Exceptions
...
Allow a default errorhandler by registering
an errorhandler for HTTPException
tests included
2017-05-23 10:34:31 -07:00
Andrey Kislyuk
11d2eec3ac
Fix refactoring error in static_folder docstring ( #2310 )
2017-05-22 23:46:22 -07:00
Neil Grey
65fc888172
For Issue #2286 : Replaces references to unittest in the documentation with pytest
2017-05-22 17:36:55 -07:00
David Lord
501f043125
clean up preprocess_request docs
...
[ci skip]
2017-04-25 12:03:08 -07:00
David Lord
bc7dae3d5a
Merge branch 'master' into AvivC-improve-docs-in-Flask.preprocess_request
2017-04-25 09:43:18 -07:00
David Lord
697f7b9365
refactor make_response to be easier to follow
...
* be explicit about how tuples are unpacked
* allow bytes for status value
* allow Headers for headers value
* use TypeError instead of ValueError
* errors are more descriptive
* document that view must not return None
* update documentation about return values
* test more response types
* test error messages
closes #1676
2017-04-25 08:30:48 -07:00
David Lord
13754b6d11
ensure error while opening session pops context
...
errors will be handled by the app error handlers
closes #1538 , closes #1528
2017-04-22 13:57:04 -07:00
David Lord
97e2cd0a5a
update changelog
...
move test next to existing test, rename
reword / reflow param doc
2017-04-21 07:26:30 -07:00
David Lord
8ad4f476aa
Merge branch 'master' into jrmccarthy-master
2017-04-21 07:03:46 -07:00
Sobolev Nikita
7481844c98
Fix typo in app.py ( #2248 )
2017-04-19 07:46:33 +02:00
jab
00d6e339ec
Change Flask.__init__ to accept two new keyword arguments, host_matching and static_host. ( #1560 )
...
This enables host_matching to be set properly by the time the constructor adds
the static route, and enables the static route to be properly associated with
the required host.
Previously, you could only enable host_matching once your app was already
instantiated (e.g. app.url_map.host_matching = True), but at that point
the constructor would have already added the static route without host matching
and an associated host, leaving the static route in a broken state.
Fixes #1559 .
2017-04-07 16:31:54 +02:00
Markus Unterwaditzer
de555c82ce
Merge branch '0.12-maintenance'
2017-03-31 18:44:33 +02:00
Markus Unterwaditzer
c935eaceaf
Revert "Handle BaseExceptions ( #2222 )"
...
This reverts commit 1d4448abe3 .
2017-03-31 18:44:14 +02:00
Diggory Blake
12c49c75fb
Handle BaseExceptions
2017-03-31 18:40:46 +02:00
Diggory Blake
1d4448abe3
Handle BaseExceptions ( #2222 )
...
* Handle BaseExceptions
* Add test and changes
* Make test more idiomatic
2017-03-31 18:07:43 +02:00
John Bodley
46e8427d81
Document run() host defaulting to SERVER_NAME
2017-03-11 18:59:34 +01:00
Hsiaoming Yang
a7f1a21c12
Don't rely on X-Requested-With for pretty print json response ( #2193 )
...
* Don't rely on X-Requested-With for pretty print json response
* Fix test cases for pretty print json patch
* Fix gramma error in docs for pretty print json config
* Add changelog for JSONIFY_PRETTYPRINT_REGULAR
2017-03-07 10:09:46 +09:00
Static
f5adb61b28
Fix typos/grammar in docs ( #2201 )
2017-03-06 14:05:59 +01:00
Armin Ronacher
c9b33d0e86
Convert Flask.run into a noop when run from the CLI
2017-01-29 12:26:52 +01:00
Raphael Deem
1636a4c410
use SERVER_NAME to set host and port in app.run() ( #2152 )
2017-01-17 13:22:16 -08:00
Martijn Pieters
de1652467b
Remove busy-work. ( #2072 )
...
It is entirely sufficient to walk the MRO of the exception class, no need to check for classes re-appearing later on, no need to add the MRO of any superclass.
* Python refuses point-blank to create a class with a circular MRO.
* All classes in a superclass MRO *already* appear in the MRO of the derived type. Re-adding the contents of a superclass MRO is doing double work.
2016-11-01 07:35:17 -07:00
Clenimar Filemon
cb30a3b562
Update docstring for errorhandler() ( #2070 )
2016-10-31 17:41:38 +01:00
小明
f3d661de66
Fix unbound error ( #2039 )
2016-09-25 18:25:54 +02:00
Pablo Marti
2b47615998
Fix typo in docs
...
Also added one missing comma for readability
2016-09-12 08:41:09 +01:00
Armin Ronacher
9e41eca7f8
Merge pull request #2013 from pallets/bugfix/error-handler-error-handler
...
Corrected after response for error handlers
2016-09-10 03:36:29 +03:00
Akbar Ibrahim
c687ffb192
Fixed error in errorhandler doc string. ( #2014 )
2016-09-08 17:34:51 +02:00
Armin Ronacher
9cd32cac32
Corrected after response for error handlers
...
Before this change after request functions were not correctly
invoked for error handlers.
2016-09-08 11:56:02 +03:00
Markus Unterwaditzer
c4ec6954e5
Don't passthrough_errors unless instructed. ( #2006 )
...
Fix #2005
Revert #1679 and #1996
2016-09-06 22:32:34 +02:00
Afonso Queirós
ccd02bfe8c
Correcting Custom Test Client class docs ( #2004 )
2016-09-05 16:57:00 +02:00
Josh Soref
6e6c3a4636
Spelling ( #1998 )
...
* spelling: cacheability
* spelling: conceptually
* spelling: javascript
* spelling: reset
* spelling: raised
* comma: instead..., they...
2016-08-30 00:26:20 +02:00
Markus Unterwaditzer
098ea0c8ca
Only passthrough_errors if PROPAGATE_EXCEPTIONS
...
See pallets/werkzeug#954
2016-08-27 14:38:13 +02:00
georgschoelly
67e391921c
fix docs: name of url_value_preprocessor method ( #1932 )
...
This typo got introduced in 5da1fc2215 ,
the original commit for the url_value_preprocessor decorator.
2016-06-26 13:32:47 -07:00
Markus Unterwaditzer
5c12721730
Revert "Addressing Issue 1809"
2016-06-14 22:45:24 +02:00
Armin Ronacher
523e271183
Implemented simplified CLI interface
2016-05-26 20:07:52 +02:00
ThiefMaster
c5900a1adf
s/1.0/0.11/ in versionadded/versionchanged markers
...
closes #1817
2016-05-23 14:43:23 +02:00
Thomas Sanjurjo
bdbca923ef
Addressing Issue 1809 ( #1811 )
...
document kwargs for Flask.register_blueprint
2016-05-22 07:09:21 -07:00