Armin Ronacher
de6067e0d4
Merge branch 'feature/logger-propagation'
2016-09-12 21:54:41 +03:00
Armin Ronacher
3d68fba011
Merge pull request #2019 from pallets/bugfix/sendfile-error
...
Do not cause errors for unknown files for sendfile
2016-09-12 21:52:42 +03:00
Pablo Marti
675805b2a4
Fix typo in docs
...
Also added one missing comma for readability
2016-09-12 08:41:09 +01:00
Armin Ronacher
578aa5805a
Killed now dead code
2016-09-11 16:57:43 +03:00
Armin Ronacher
c27c55be2f
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
Armin Ronacher
830632714c
Do not error for unknown files if send_file sends an actual file
2016-09-10 03:33:53 +03:00
Akbar Ibrahim
d34d878095
Fixed error in errorhandler doc string. ( #2014 )
2016-09-08 17:34:51 +02:00
Armin Ronacher
a7fbfb387f
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
ec9e9c2f6e
Don't passthrough_errors unless instructed. ( #2006 )
...
Fix #2005
Revert #1679 and #1996
2016-09-06 22:32:34 +02:00
Afonso Queirós
e42c5b3d94
Correcting Custom Test Client class docs ( #2004 )
2016-09-05 16:57:00 +02:00
Roman
ae649aacaf
Fix error in send_file helper ( #2003 )
...
* Fix error in send_file (mimetype_filename is not defined)
* fix formatting error message in send_file
2016-09-04 16:28:05 -07:00
Josh Soref
0f2c793e14
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
2a5061282b
Only passthrough_errors if PROPAGATE_EXCEPTIONS
...
See pallets/werkzeug#954
2016-08-27 14:38:13 +02:00
Markus Unterwaditzer
a9757f8b1e
Properly remove f.name usage in send_file ( #1988 )
...
* Properly remove f.name usage in send_file
* Update changelogs
* Fix tests
2016-08-26 03:08:03 +02:00
Armin Ronacher
9657b517a8
Disable logger propagation by default
2016-08-25 15:41:46 +02:00
Nate Prewitt
9608198047
adding in try around __import__ to catch invalid files/paths ( #1950 )
2016-08-12 15:12:00 +02:00
georgschoelly
7de93972bd
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
David Lord
d775103a03
clean up code formatting in some docs
...
fix warnings while building docs
2016-06-26 13:03:29 -07:00
David Lord
18a00020e5
re-add passthrough_errors to cli runner ( #1928 )
...
This got dropped during the cli simplification. Re: #1679
2016-06-23 13:00:45 -07:00
Archie Roller
6996bc4fab
Fix #1911 ( #1913 )
2016-06-15 09:27:06 -07:00
Markus Unterwaditzer
73246f4274
Revert "Addressing Issue 1809"
2016-06-14 22:45:24 +02:00
Markus Unterwaditzer
37e8f151d0
Merge branch '0.11-maintenance'
2016-06-13 20:34:30 +02:00
Markus Unterwaditzer
1fa0715c20
Fix PyPy3 support and add bug references
...
Fix #1841
2016-06-13 20:33:57 +02:00
Markus Unterwaditzer
040927f9a9
Merge branch '0.11-maintenance'
2016-06-07 18:26:06 +02:00
Markus Unterwaditzer
5bc51e3296
This is 0.11.2-dev
2016-06-07 18:23:09 +02:00
Markus Unterwaditzer
c347825eff
Bump version to 0.11.1
2016-06-07 18:22:43 +02:00
David Lord
2560444f47
pass value directly to last_modified
2016-06-05 12:42:34 -07:00
Prachi Shirish Khadke
cd408cc462
Add last_modified arg for send_file
...
Enhancement: Add last_modified arg of type DateTime to send_file.
Fixes pallets/flask#1321
2016-06-05 10:59:17 -07:00
Giampaolo Eusebi
89235f20e4
Make safe_join able to safely join multiple paths
2016-06-04 11:26:16 +02:00
Josiah Philipsen
611e293555
fixed unmatched elif
...
Also update relevant test
2016-06-03 18:42:07 +02:00
jphilipsen05
92000b6658
fixed unmatched elif ( #1872 )
2016-06-03 18:41:10 +02:00
Dan Sully
51c2069872
Remove deprecation warnings for add_etags & mimetype guessing for send_file()
...
Fix #1849
2016-06-03 14:52:33 +02:00
Jason Brazeal
15493e0902
improved documentation for config.from_object ( #1870 )
2016-06-02 15:40:59 -07:00
RamiC
b79d3f3f35
Use the whole sys.version string
2016-06-02 13:55:00 +03:00
RamiC
ffa148810b
Add a --version switch to flask cli
...
re #1828
2016-06-02 13:35:16 +03:00
Yoav Ram
0dd2f0a88c
Update help to > set FLASK_APP=hello.py ( #1830 )
...
When running `flask --help`, the printed string contains this:
> Example usage:
>
> set FLASK_APP=hello
> set FLASK_DEBUG=1
> flask run
but it actually only works with `set FLASK_APP=hello.py` so the help should be changed.
This is true on my Windows 7 Python 3.5 flask 0.11 setup.
2016-05-30 23:20:35 +02:00
Ionuț Arțăriși
cabcbbd9a5
Show line which caused the DeprecationWarning ( #1831 )
...
When raising a DeprecationWarning, show the line in the application code
which caused the warning, rather than the line in Flask
e.g. a file `app.py` with:
```python
from flask import Flask
from flask.ext.babel import Babel
```
will show:
```
app.py:2: ExtDeprecationWarning: Importing flask.ext.babel is
deprecated, use flask_babel instead.
```
instead of:
```
/home/mapleoin/venv/local/lib/python2.7/site-packages/flask/exthook.py:71: ExtDeprecationWarning: Importing flask.ext.babel is deprecated, use flask_babel instead.
.format(x=modname), ExtDeprecationWarning
```
2016-05-29 14:51:05 -07:00
Armin Ronacher
2adf5c8b48
This is 0.12-dev
2016-05-29 11:02:48 +02:00
Armin Ronacher
dfecf03e6b
Bump version number to 0.11
2016-05-29 11:02:23 +02:00
Armin Ronacher
c1496c7719
Merge pull request #1822 from pallets/bugfix/better-pop
...
Improve application context popping
2016-05-26 22:31:15 +02:00
Armin Ronacher
e6a152833b
Merge pull request #1821 from pallets/feature/plugin-cli
...
Added plugin support to the cli
2016-05-26 22:17:34 +02:00
Armin Ronacher
36e6ec9419
Merge pull request #1813 from pallets/bugfix/scheme
...
Resolve state issue for url_for with forced scheme
2016-05-26 21:48:20 +02:00
Armin Ronacher
308af2812e
Improve application context popping
...
Exceptions during teardown handling will no longer leave application
contexts lingering around. This fixes #1767
2016-05-26 21:46:56 +02:00
Armin Ronacher
17a90ce062
Merge pull request #1814 from pallets/feature/faster-template-loading
...
Fast path for disabled template load explain.
2016-05-26 21:34:56 +02:00
Armin Ronacher
d7f5bbb4e1
Added plugin support to the cli
2016-05-26 21:29:01 +02:00
Armin Ronacher
4cb36cbafc
Update docs to the new CLI patterns
2016-05-26 20:45:50 +02:00
Armin Ronacher
3b98e39768
Implemented simplified CLI interface
2016-05-26 20:07:52 +02:00
ThiefMaster
e9e7e5e0c5
s/1.0/0.11/ in versionadded/versionchanged markers
...
closes #1817
2016-05-23 14:43:23 +02:00
Thomas Sanjurjo
b6a1091588
Addressing Issue 1809 ( #1811 )
...
document kwargs for Flask.register_blueprint
2016-05-22 07:09:21 -07:00
Armin Ronacher
6d1962521b
Fast path for disabled template load explain.
2016-05-22 11:36:40 +02:00