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
Provenance
- Commit
ce6e4cb- Tree
3edc65e- Author
Armin Ronacher <armin.ronacher@active-4.com>- Committer
Armin Ronacher <armin.ronacher@active-4.com>- Parent
dfecc86
9 files changed+17 added−17 removed
modified:docs/patterns/flashing.rst+1 added-1 removed
84 unmodified lines85 86 Flashing With Categories87 ------------------------88 89-.. versionadded:: 0.589+.. versionadded:: 0.390 91 It is also possible to provide categories when flashing a message. The92 default category if nothing is provided is ``'message'``. Alternative93 categories can be used to give the user better feedback. For example26 unmodified linesmodified:docs/config.rst+1 added-1 removed
1 unmodified line2 3 Configuration Handling4 ======================5 6-.. versionadded:: 0.56+.. versionadded:: 0.37 8 Applications need some kind of configuration. There are different things9 you might want to change. Like toggling debug mode, the secret key and a10 lot of very similar things.114 unmodified linesmodified:docs/errorhandling.rst+1 added-1 removed
1 unmodified line2 3 Handling Application Errors4 ===========================5 6-.. versionadded:: 0.56+.. versionadded:: 0.37 8 Applications fail, server fail. Sooner or later you will see an exception9 in production. Even if your code is 100% correct, you will still see10 exceptions from time to time. Why? Because everything else involved will226 unmodified linesmodified:docs/quickstart.rst+2 added-2 removed
689 unmodified lines690 691 Logging692 -------693 694-.. versionadded:: 0.5694+.. versionadded:: 0.3695 696 Sometimes you might be in the situation where you deal with data that697 should be correct, but actually is not. For example you have some client698 side code that sends an HTTP request to the server, and it's obviously2 unmodified lines701 Request`` in that situation, but other times it is not and the code has to702 continue working.703 704 Yet you want to log that something fishy happened. This is where loggers705-come in handy. As of Flask 0.5 a logger is preconfigured for you to use.705+come in handy. As of Flask 0.3 a logger is preconfigured for you to use.706 707 Here are some example log calls::708 709 app.logger.debug('A value for debugging')6 unmodified linesmodified:docs/shell.rst+1 added-1 removed
1 Working with the Shell2 ======================3 4-.. versionadded:: 0.54+.. versionadded:: 0.35 6 One of the reasons everybody loves Python is the interactive shell. It7 basically allows you to execute Python commands in real time and8 immediately get results back. Flask itself does not come with an102 unmodified linesmodified:docs/upgrading.rst+2 added-2 removed
12 unmodified lines13 This section of the documentation enumerates all the changes in Flask from14 release to release and how you can change your code to have a painless15 updating experience.16 17-Version 0.517+Version 0.318 -----------19 20-Flask 0.5 introduces configuration support and logging as well as20+Flask 0.3 introduces configuration support and logging as well as21 categories for flashing messages. All these are features that are 100%22 backwards compatible but you might want to take advantage of them.23 24 Configuration Support32 unmodified linesmodified:CHANGES+1 added-1 removed
1 unmodified line2 ===============3 4 Here you can see the full list of changes between each Flask release.5 6-Version 0.56+Version 0.37 -----------8 9 Release date to be announced10 34 unmodified linesmodified:flask.py+7 added-7 removed
230 unmodified lines231 """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`.234 235- .. versionchanged: 0.5235+ .. versionchanged: 0.3236 `category` parameter added.237 238 :param message: the message to be flashed.239 :param category: the category for the message. The following values19 unmodified lines259 {% for category, msg in get_flashed_messages(with_categories=true) %}260 <p class=flash-{{ category }}>{{ msg }}261 {% endfor %}262 263- .. versionchanged:: 0.5263+ .. versionchanged:: 0.3264 `with_categories` parameter added.265 266 :param with_categories: set to `True` to also receive categories.267 """560 unmodified lines828 #: 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 lines948 app.logger.debug('A value for debugging')949 app.logger.warning('A warning ocurred (%d apples)', 42)950 app.logger.error('An error occoured')951 952- .. versionadded:: 0.5952+ .. versionadded:: 0.3953 """954 from logging import getLogger, StreamHandler, Formatter, DEBUG955 class DebugHandler(StreamHandler):956 def emit(x, record):267 unmodified lines1224 """Handles an HTTP exception. By default this will invoke the1225 registered error handlers and fall back to returning the1226 exception as response.1227 1228- .. versionadded: 0.51228+ .. versionadded: 0.31229 """1230 handler = self.error_handlers.get(e.code)1231 if handler is None:1232 return e5 unmodified lines1238 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.1241 1242- .. versionadded: 0.51242+ .. versionadded: 0.31243 """1244 handler = self.error_handlers.get(500)1245 if self.debug:1246 raise149 unmodified lines1396 >>> request.path1397 u'/'1398 >>> ctx.unbind()1399 1400- .. versionchanged:: 0.51400+ .. versionchanged:: 0.31401 Added support for non-with statement usage and `with` statement1402 is now passed the ctx object.1403 1404 :param environ: a WSGI environment26 unmodified linesmodified:setup.py+1 added-1 removed
41 unmodified lines42 43 44 setup(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