lord63
7a13898bd2
Fix typo in app_ctx_globals_class doc in app.py
2015-11-07 09:04:24 +08:00
Eric Yang
55d0c8bb49
Fix a typo
...
Maybe this is a typo?
2015-11-04 22:08:31 +08:00
Timo Furrer
906e72b219
support timedelta for SEND_FILE_MAX_AGE_DEFAULT config variable
2015-10-24 07:04:23 +02:00
Armin Ronacher
da2634af9e
Fixed some lint warnings
2015-10-02 23:19:54 +02:00
Mathias J. Hennig
5aa9889cf4
Addressing feedback from pull request
2015-07-27 15:32:23 +02:00
Mathias J. Hennig
97d3856a9f
Reimplement function with_metaclass()
2015-07-22 23:35:13 +02:00
Markus Unterwaditzer
c04c3a1393
Merge pull request #1535 from lobeck/revert-1534-update_external_url_handler_example
...
Revert "make external_url_handler example py3 compliant"
2015-07-16 12:20:33 +02:00
lobeck
9d01d60dea
Revert "make external_url_handler example py3 compliant"
2015-07-16 13:53:59 +02:00
Markus Unterwaditzer
976db05a5b
Merge branch '0.10-maintenance'
2015-07-16 12:05:07 +02:00
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
2015-07-16 12:00:16 +02:00
Christian Becker
29a3533a01
make external_url_handler example py3 compliant
...
- a raises statement with multiple values is no longer allowed in python 3
2015-07-16 02:45:56 +02:00
Alan Hamlett
a6f9582497
Enable autoescape for render_template_string
2015-07-04 23:41:43 +02:00
Alan Hamlett
01aebb311d
remove whitespace at end of lines
2015-07-04 23:41:31 +02:00
Markus Unterwaditzer
f6d2e02ed7
Merge pull request #1509 from ThiefMaster/appctxglobals-candy
...
Add pop and setdefault to AppCtxGlobals
2015-06-30 21:33:04 +02:00
ThiefMaster
c60eabe688
Remove the deprecated Flask.modules property
2015-06-20 18:09:27 +02:00
ThiefMaster
394acf2112
Add pop and setdefault to AppCtxGlobals
2015-06-20 18:04:58 +02:00
Alexander Pantyukhin
a2c426a6cf
Ignore before_render_template return values
2015-06-17 15:42:39 +02:00
Alexander Pantyukhin
0a474db0d1
template overrides handling changed
2015-06-17 15:42:39 +02:00
Alexander Pantyukhin
d1c1fa9ce3
before_render_template signal can override render template.
2015-06-17 15:42:39 +02:00
Alexander Pantyukhin
61775bf76b
fix endline in the signal.py
2015-06-17 15:42:39 +02:00
Alexander Pantyukhin
cb8edfa806
before_render_template signal
2015-06-17 15:42:39 +02:00
Markus Unterwaditzer
f0e69b1b6d
Fix #1477
2015-06-13 17:07:51 +02:00
GunWoo Choi
b037e50c83
Update title of docstring in flask.cli
2015-06-12 13:40:53 +09:00
Markus Unterwaditzer
d93e9be563
Document static_folder
2015-06-11 19:55:51 +02:00
Keyan Pishdadian
b7225b5fa3
Update send_file() docs to clarify encoding requirement #1286
2015-06-06 07:38:09 +02:00
Markus Unterwaditzer
0c442fba62
Rename jinja_env_class
...
Inspired by #1056
2015-06-06 06:29:26 +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
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
Wang Haowei
53817cc5f7
fix docstring for _find_errorhandler
2015-05-20 20:31:06 +08: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
ning.xie
98e4bac316
fix pep8 with logging.py
2015-04-19 17:33:54 +08:00
Markus Unterwaditzer
aee9646c2f
Recursively traverse MRO of exception
2015-04-11 20:52:47 +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
Martijn Pieters
35a1bc2f4a
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
Markus Unterwaditzer
0a59ed3a0b
Untangle logic a bit
2015-03-05 22:00:27 +01:00
Keyan Pishdadian
2277af95a9
Remove unused import and clean control flow
2015-03-05 13:26:59 -05:00
Keyan Pishdadian
ac9a7c1740
Change format index to support Python 2.6
2015-03-05 13:19:00 -05:00
Keyan Pishdadian
b032c2851e
Changed error message to include actual exception contents
2015-03-05 13:04:38 -05:00
Keyan Pishdadian
efd6333ae0
Change to hardcoding exception contents to support Python3 json loading exception format
2015-03-05 12:48:38 -05:00
Keyan Pishdadian
8fa4b36357
Change logic to support when current_app is not available
2015-03-04 13:21:39 -05:00