Daniel Neuhäuser
0823e1f443
Don't allow namespace packages anymore
2015-06-06 04:44:41 +02:00
Daniel Neuhäuser
8c127f64ae
Require Python 3.3 and higher for extensions
...
Flask and several extensions already supports Python 3.3 and higher. By
requiring approved extensions to support Python 3.3 as well we can
quickly achieve better Python 3 adoption and make using Python 3 easier
for users.
The effort of supporting both Python 2.7 and Python 3.3 is small enough
that it shouldn't be a problem to require this from extension authors.
2015-06-06 04:44:41 +02:00
Daniel Neuhäuser
53dd47ac8f
Drop Python 2.6 minimum requirement for extensions
...
Python 2.6 is not supported by python-dev anymore and does not get any
security updates. Even though Flask supports 2.6 at the moment, I think
it's not necessary for any extensions that are going to be approved in
the future to support 2.6.
2015-06-06 04:44:41 +02:00
Daniel Neuhäuser
84a9146b6c
Drop Extension==dev requirement
...
pip doesn't install links included in the description of projects
anymore. Therefore ==dev install doesn't work anymore.
2015-06-06 04:44:41 +02:00
Markus Unterwaditzer
a76839ed7f
Add changelog for #1218
2015-06-06 04:43:41 +02:00
Jeff Widman
aafb9d0fbd
Correct the order of suggested syntax for extension imports
...
According to https://github.com/mitsuhiko/flask/issues/1092#issuecomment-47118613 and https://github.com/mitsuhiko/flask/pull/1085#issuecomment-45466907 , the correct order to attempt to import extensions should be flask_foo, then flask.ext.foo, then flaskext_foo.
2015-06-06 04:43:22 +02:00
Markus Unterwaditzer
a69b664de0
Merge pull request #1483 from untitaker/improve-autodoc
...
Show original autodoc signatures
2015-06-06 04:17:57 +02:00
Markus Unterwaditzer
e48fde8176
Show original autodoc signatures
...
Alternative to #1403
2015-06-06 04:17:33 +02:00
Markus Unterwaditzer
f5cff2fa3f
Merge branch 'AndrewBMartin-patch-1'
2015-06-06 03:35:22 +02:00
Andrew
2a9385d8c3
Include backend argument when instantiating Celery
...
Not including the backend argument can lead to AttributeError:
DisabledBackend object has no attribute for '_get_task_meta_for'.
See e.g.
http://stackoverflow.com/questions/23215311/celery-with-rabbitmq-attributeerror-disabledbackend-object-has-no-attribute .
At the same time, including the backend argument doesn't seem to harm anything else.
2015-06-06 03:35:04 +02:00
Markus Unterwaditzer
be4b530de0
Changelog for #1422
2015-06-06 03:31:51 +02:00
Markus Unterwaditzer
1c7135cc9e
Merge branch 'ThiefMaster-override-jinja-env'
2015-06-06 03:30:49 +02:00
Markus Unterwaditzer
a19c2397e7
0.11 => 1.0
2015-06-06 03:29:44 +02:00
Markus Unterwaditzer
87e2b98d18
Merge pull request #1480 from jmcarp/handle-empty-deque
...
Handle empty deque on errorhandler lookup.
2015-06-03 17:46:10 +02:00
Joshua Carp
d32437bf0f
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.
2015-06-02 16:13:30 -04:00
Markus Unterwaditzer
0339a45c7b
Clarify some docs
...
Fix #1476
2015-05-31 18:59:14 +02:00
Markus Unterwaditzer
6b9f5b314b
Merge pull request #1463 from moonshadow/fix_docstring
...
fix docstring for _find_errorhandler
2015-05-20 14:52:08 +02:00
Wang Haowei
53817cc5f7
fix docstring for _find_errorhandler
2015-05-20 20:31:06 +08:00
Markus Unterwaditzer
19a1fe1c7a
Merge pull request #1461 from justinwp/patch-1
...
fixed import of werkzeug secure_filename
2015-05-15 10:24:24 +02:00
Justin Poehnelt
7af629354e
fixed import of werkzeug secure_filename
2015-05-14 23:44:49 -07:00
Markus Unterwaditzer
ed85df440f
Merge pull request #1455 from nickjj/docs_contributing
...
Add pip install --editable . to contributing docs
2015-05-07 13:24:13 +02:00
Nick Janetakis
aa6dd1c71b
Add pip install --editable . to contributing docs
2015-05-06 16:07:47 -07:00
Markus Unterwaditzer
dba8e66508
Merge pull request #1453 from ozbek/master
...
Replace 'I' with 'We'
2015-05-06 15:55:28 +02:00
Shuhrat Dehkanov
32cc1b7dba
Replace 'I' with 'We'
...
To be consistent with the usage elsewhere in the README
2015-05-06 22:13:52 +09:00
Markus Unterwaditzer
4ec5e0e8d2
Merge pull request #1450 from Carreau/importlib
...
importlib deprecated in 3.4
2015-05-02 21:58:44 +02:00
Matthias Bussonnier
b42f47d4ee
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
2015-05-02 10:54:38 -07:00
Markus Unterwaditzer
34fcd6e508
Merge pull request #1448 from fordhurley/custom_converters
...
Mention that custom converters can be defined for url routes
2015-05-01 20:11:33 +02:00
Ford Hurley
8d80857cc0
Mention that custom converters can be defined for url routes
2015-05-01 12:11:55 -04:00
Markus Unterwaditzer
eb1efd5098
Errorhandlers were NOT *added* in 1.0
2015-04-30 23:05:55 +02:00
Markus Unterwaditzer
5955f0a7c6
Merge pull request #1441 from andyxning/fix_pep8_with_logging
...
Fix pep8 with logging
2015-04-19 11:37:55 +02:00
ning.xie
98e4bac316
fix pep8 with logging.py
2015-04-19 17:33:54 +08:00
Markus Unterwaditzer
3e69322dc2
Merge pull request #1431 from untitaker/flask-errorhandling-amend
...
Some cleanup for errorhandling refactor
2015-04-12 00:06:57 +02:00
Markus Unterwaditzer
f500ba5412
Fix formatting errors
2015-04-11 20:52:47 +02:00
Markus Unterwaditzer
aee9646c2f
Recursively traverse MRO of exception
2015-04-11 20:52:47 +02:00
Markus Unterwaditzer
a21cd9db75
Merge pull request #1291 from flying-sheep/errorhandler-rework
...
Fixed and intuitivized exception handling
2015-04-11 18:13:22 +02:00
Markus Unterwaditzer
b23a859b8d
Merge pull request #1429 from flying-sheep/errorhandler-rework-docs
...
Added docs for the error handler rework
2015-04-11 18:12:46 +02:00
Phil Schaf
b138a27f30
some details
2015-04-11 18:08:04 +02:00
Phil Schaf
739c1e4e5e
slimmed down error handling intro
2015-04-11 18:01:22 +02:00
Phil Schaf
f8e3819217
added info about an exception being raised for the old and broken behavior
2015-04-11 17:44:18 +02:00
Phil Schaf
55c0900452
Added docs for the error handler rework
2015-04-11 17:25:17 +02:00
Phil Schaf
763e40e4ee
addressed a few review concerns
2015-04-11 14:24:01 +02:00
Phil Schaf
f24810553b
added caching
2015-04-11 14:05:22 +02:00
Phil Schaf
0f7727f3de
removed ExceptionHandlerDict
2015-04-11 14:05:22 +02:00
Phil Schaf
b32aa270e5
Removed 500 not being registerable for blueprints
2015-04-11 14:05:22 +02:00
Phil Schaf
cb16fb4fb0
More verbose message for old broken behavior
2015-04-11 14:05:22 +02:00
Phil Schaf
40d3a943dc
Removed unused http code get function
2015-04-11 14:05:22 +02:00
Phil Schaf
adaf659e67
Switched to userdict for obsolete Python versions
2015-04-11 14:05:22 +02:00
Phil Schaf
8a53ab315c
Fixed and intuitivized exception handling
2015-04-11 14:05:22 +02:00
ThiefMaster
2cd1824de5
Allow custom jinja environments
...
This is useful e.g. when using the new Jinja Environment
attributes added in mitsuhiko/jinja2#404
2015-04-06 15:03:00 +02:00
Keyan Pishdadian
f525f7a82c
Merge pull request #1418 from alexwlchan/master
...
Fix a few spelling mistakes in the docs
2015-04-03 15:46:33 -04:00