Skip to content
Myr

0.5 is 0.3 now, why skip numbers?

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent dfecc86 · Browse files · 9 files+17 added−17 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

9 files+17 added−17 removed

  • other:+17 added−17 removed

9 files+17 added−17 removed

modified:docs/patterns/flashing.rst+1 added-1 removed
84 unmodified lines
8586Flashing With Categories87------------------------8889.. versionadded:: 0.589.. versionadded:: 0.39091It is also possible to provide categories when flashing a message. The92default category if nothing is provided is ``'message'``. Alternative93categories can be used to give the user better feedback. For example
26 unmodified lines
modified:docs/config.rst+1 added-1 removed
1 unmodified line
23Configuration Handling4======================56.. versionadded:: 0.56.. versionadded:: 0.378Applications need some kind of configuration. There are different things9you might want to change. Like toggling debug mode, the secret key and a10lot of very similar things.
114 unmodified lines
modified:docs/errorhandling.rst+1 added-1 removed
1 unmodified line
23Handling Application Errors4===========================56.. versionadded:: 0.56.. versionadded:: 0.378Applications fail, server fail. Sooner or later you will see an exception9in production. Even if your code is 100% correct, you will still see10exceptions from time to time. Why? Because everything else involved will
226 unmodified lines
modified:docs/quickstart.rst+2 added-2 removed
689 unmodified lines
690691Logging692-------693694.. versionadded:: 0.5694.. versionadded:: 0.3695696Sometimes you might be in the situation where you deal with data that697should be correct, but actually is not. For example you have some client698side code that sends an HTTP request to the server, and it's obviously
2 unmodified lines
701Request`` in that situation, but other times it is not and the code has to702continue working.703704Yet you want to log that something fishy happened. This is where loggers705come in handy. As of Flask 0.5 a logger is preconfigured for you to use.705come in handy. As of Flask 0.3 a logger is preconfigured for you to use.706707Here are some example log calls::708709 app.logger.debug('A value for debugging')
6 unmodified lines
modified:docs/shell.rst+1 added-1 removed
1Working with the Shell2======================34.. versionadded:: 0.54.. versionadded:: 0.356One of the reasons everybody loves Python is the interactive shell. It7basically allows you to execute Python commands in real time and8immediately get results back. Flask itself does not come with an
102 unmodified lines
modified:docs/upgrading.rst+2 added-2 removed
12 unmodified lines
13This section of the documentation enumerates all the changes in Flask from14release to release and how you can change your code to have a painless15updating experience.1617Version 0.517Version 0.318-----------1920Flask 0.5 introduces configuration support and logging as well as20Flask 0.3 introduces configuration support and logging as well as21categories for flashing messages. All these are features that are 100%22backwards compatible but you might want to take advantage of them.2324Configuration Support
32 unmodified lines
modified:CHANGES+1 added-1 removed
1 unmodified line
2===============34Here you can see the full list of changes between each Flask release.56Version 0.56Version 0.37-----------89Release date to be announced10
34 unmodified lines
modified:flask.py+7 added-7 removed
230 unmodified lines
231 """Flashes a message to the next request. In order to remove the232 flashed message from the session and to display it to the user,233 the template has to call :func:`get_flashed_messages`.234235 .. versionchanged: 0.5235 .. versionchanged: 0.3236 `category` parameter added.237238 :param message: the message to be flashed.239 :param category: the category for the message. The following values
19 unmodified lines
259 {% for category, msg in get_flashed_messages(with_categories=true) %}260 <p class=flash-{{ category }}>{{ msg }}261 {% endfor %}262263 .. versionchanged:: 0.5263 .. versionchanged:: 0.3264 `with_categories` parameter added.265266 :param with_categories: set to `True` to also receive categories.267 """
560 unmodified lines
828 #: the logging format used for the debug logger. This is only used when829 #: the application is in debug mode, otherwise the attached logging830 #: handler does the formatting.831 #:832 #: .. versionadded:: 0.5832 #: .. versionadded:: 0.3833 debug_log_format = (834 '-' * 80 + '\n' +835 '%(levelname)s in %(module)s, %(pathname)s:%(lineno)d]:\n' +836 '%(message)s\n' +
111 unmodified lines
948 app.logger.debug('A value for debugging')949 app.logger.warning('A warning ocurred (%d apples)', 42)950 app.logger.error('An error occoured')951952 .. versionadded:: 0.5952 .. versionadded:: 0.3953 """954 from logging import getLogger, StreamHandler, Formatter, DEBUG955 class DebugHandler(StreamHandler):956 def emit(x, record):
267 unmodified lines
1224 """Handles an HTTP exception. By default this will invoke the1225 registered error handlers and fall back to returning the1226 exception as response.12271228 .. versionadded: 0.51228 .. versionadded: 0.31229 """1230 handler = self.error_handlers.get(e.code)1231 if handler is None:1232 return e
5 unmodified lines
1238 be re-raised immediately, otherwise it is logged an the handler1239 for an 500 internal server error is used. If no such handler1240 exists, a default 500 internal server error message is displayed.12411242 .. versionadded: 0.51242 .. versionadded: 0.31243 """1244 handler = self.error_handlers.get(500)1245 if self.debug:1246 raise
149 unmodified lines
1396 >>> request.path1397 u'/'1398 >>> ctx.unbind()13991400 .. versionchanged:: 0.51400 .. versionchanged:: 0.31401 Added support for non-with statement usage and `with` statement1402 is now passed the ctx object.14031404 :param environ: a WSGI environment
26 unmodified lines
modified:setup.py+1 added-1 removed
41 unmodified lines
424344setup(45 name='Flask',46 version='0.5',46 version='0.3',47 url='http://github.com/mitsuhiko/flask/',48 license='BSD',49 author='Armin Ronacher',50 author_email='armin.ronacher@active-4.com',
21 unmodified lines