Merge branch '0.10-maintenance'
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Daniel Neuhäuser · committed by Daniel Neuhäuser · parents afd3c45, 52098e1 · Browse files · 45 files·+45 added−45 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
45 files+45 added−45 removed
- other:+45 added−45 removed
Provenance
- Commit
d517f35- Tree
bfe48da- Author
Daniel Neuhäuser <dasdasich@gmail.com>- Committer
Daniel Neuhäuser <dasdasich@gmail.com>- Parent 1
afd3c45- Parent 2
52098e1
45 files changed+45 added−45 removed
modified:examples/flaskr/flaskr_tests.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~5 6 Tests the Flaskr application.7 8- :copyright: (c) 2010 by Armin Ronacher.8+ :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 import os12 import flaskr63 unmodified linesmodified:examples/flaskr/flaskr.py+1 added-1 removed
4 unmodified lines5 6 A microblog example application written as Flask tutorial with7 Flask and sqlite3.8 9- :copyright: (c) 2010 by Armin Ronacher.9+ :copyright: (c) 2014 by Armin Ronacher.10 :license: BSD, see LICENSE for more details.11 """12 13 from sqlite3 import dbapi2 as sqlite395 unmodified linesmodified:examples/jqueryexample/jqueryexample.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~5 6 A simple application that shows how Flask and jQuery get along.7 8- :copyright: (c) 2010 by Armin Ronacher.8+ :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 from flask import Flask, jsonify, render_template, request12 app = Flask(__name__)17 unmodified linesmodified:examples/minitwit/minitwit_tests.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~5 6 Tests the MiniTwit application.7 8- :copyright: (c) 2010 by Armin Ronacher.8+ :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 import os12 import minitwit137 unmodified linesmodified:examples/minitwit/minitwit.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~5 6 A microblogging application written with Flask and sqlite3.7 8- :copyright: (c) 2010 by Armin Ronacher.8+ :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 12 import time243 unmodified linesmodified:flask/ext/__init__.py+1 added-1 removed
12 unmodified lines13 14 We're switching from namespace packages because it was just too painful for15 everybody involved.16 17- :copyright: (c) 2011 by Armin Ronacher.17+ :copyright: (c) 2014 by Armin Ronacher.18 :license: BSD, see LICENSE for more details.19 """20 21 8 unmodified linesmodified:flask/testsuite/__init__.py+1 added-1 removed
4 unmodified lines5 6 Tests Flask itself. The majority of Flask is already tested7 as part of Werkzeug.8 9- :copyright: (c) 2011 by Armin Ronacher.9+ :copyright: (c) 2014 by Armin Ronacher.10 :license: BSD, see LICENSE for more details.11 """12 13 from __future__ import print_function233 unmodified linesmodified:flask/testsuite/appctx.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~~~~~~~~~5 6 Tests the application context.7 8- :copyright: (c) 2012 by Armin Ronacher.8+ :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 12 import flask106 unmodified linesmodified:flask/testsuite/basic.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~~~~~~~~5 6 The basic functionality.7 8- :copyright: (c) 2011 by Armin Ronacher.8+ :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 12 import re1292 unmodified linesmodified:flask/testsuite/blueprints.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~~~~~~~~~~~~~5 6 Blueprints (and currently modules)7 8- :copyright: (c) 2011 by Armin Ronacher.8+ :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 12 import flask778 unmodified linesmodified:flask/testsuite/config.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~~~~~~~~~5 6 Configuration and instances.7 8- :copyright: (c) 2011 by Armin Ronacher.8+ :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 12 import os300 unmodified linesmodified:flask/testsuite/deprecations.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~5 6 Tests deprecation support.7 8- :copyright: (c) 2011 by Armin Ronacher.8+ :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 12 import flask12 unmodified linesmodified:flask/testsuite/examples.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~~~~~~~~~~~5 6 Tests the examples.7 8- :copyright: (c) 2011 by Armin Ronacher.8+ :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 import os12 import unittest26 unmodified linesmodified:flask/testsuite/ext.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~~~~~~5 6 Tests the extension import thing.7 8- :copyright: (c) 2011 by Armin Ronacher.8+ :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 12 import sys122 unmodified linesmodified:flask/testsuite/helpers.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~~~~~~~~~~5 6 Various helpers.7 8- :copyright: (c) 2011 by Armin Ronacher.8+ :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 12 import os611 unmodified linesmodified:flask/testsuite/regression.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~~~~~~~~~~~~~5 6 Tests regressions.7 8- :copyright: (c) 2011 by Armin Ronacher.8+ :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 12 import os104 unmodified linesmodified:flask/testsuite/reqctx.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~~~~~~~~~5 6 Tests the request context.7 8- :copyright: (c) 2012 by Armin Ronacher.8+ :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 12 import flask189 unmodified linesmodified:flask/testsuite/signals.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~~~~~~~~~~5 6 Signalling.7 8- :copyright: (c) 2011 by Armin Ronacher.8+ :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 12 import flask141 unmodified linesmodified:flask/testsuite/subclassing.py+1 added-1 removed
4 unmodified lines5 6 Test that certain behavior of flask can be customized by7 subclasses.8 9- :copyright: (c) 2011 by Armin Ronacher.9+ :copyright: (c) 2014 by Armin Ronacher.10 :license: BSD, see LICENSE for more details.11 """12 import flask13 import unittest33 unmodified linesmodified:flask/testsuite/templating.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~~~~~~~~~~~~~5 6 Template functionality7 8- :copyright: (c) 2011 by Armin Ronacher.8+ :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 12 import flask290 unmodified linesmodified:flask/testsuite/testing.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~~~~~~~~~~5 6 Test client and more.7 8- :copyright: (c) 2011 by Armin Ronacher.8+ :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 12 import flask230 unmodified linesmodified:flask/testsuite/views.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~~~~~~~~5 6 Pluggable views.7 8- :copyright: (c) 2011 by Armin Ronacher.8+ :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 12 import flask157 unmodified linesmodified:flask/__init__.py+1 added-1 removed
4 unmodified lines5 6 A microframework based on Werkzeug. It's extensively documented7 and follows best practice patterns.8 9- :copyright: (c) 2011 by Armin Ronacher.9+ :copyright: (c) 2014 by Armin Ronacher.10 :license: BSD, see LICENSE for more details.11 """12 13 __version__ = '0.11-dev'37 unmodified linesmodified:flask/_compat.py+1 added-1 removed
5 unmodified lines6 Some py2/py3 compatibility support based on a stripped down7 version of six so we don't have to depend on a specific version8 of it.9 10- :copyright: (c) 2013 by Armin Ronacher.10+ :copyright: (c) 2014 by Armin Ronacher.11 :license: BSD, see LICENSE for more details.12 """13 import sys14 59 unmodified linesmodified:flask/app.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~5 6 This module implements the central WSGI application object.7 8- :copyright: (c) 2011 by Armin Ronacher.8+ :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 12 import os1828 unmodified linesmodified:flask/blueprints.py+1 added-1 removed
4 unmodified lines5 6 Blueprints are the recommended way to implement larger or more7 pluggable applications in Flask 0.7 and later.8 9- :copyright: (c) 2011 by Armin Ronacher.9+ :copyright: (c) 2014 by Armin Ronacher.10 :license: BSD, see LICENSE for more details.11 """12 from functools import update_wrapper13 388 unmodified linesmodified:flask/config.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~5 6 Implements the configuration related objects.7 8- :copyright: (c) 2011 by Armin Ronacher.8+ :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 12 import imp156 unmodified linesmodified:flask/ctx.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~5 6 Implements the objects required to keep the context.7 8- :copyright: (c) 2011 by Armin Ronacher.8+ :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 12 from __future__ import with_statement387 unmodified linesmodified:flask/debughelpers.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~~~~~5 6 Various helpers to make the development experience better.7 8- :copyright: (c) 2011 by Armin Ronacher.8+1 :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 from ._compat import implements_to_string12 75 unmodified linesmodified:flask/exthook.py+1 added-1 removed
14 unmodified lines15 everybody involved.16 17 This is used by `flask.ext`.18 19- :copyright: (c) 2011 by Armin Ronacher.19+ :copyright: (c) 2014 by Armin Ronacher.20 :license: BSD, see LICENSE for more details.21 """22 import sys23 import os97 unmodified linesmodified:flask/globals.py+1 added-1 removed
4 unmodified lines5 6 Defines all the global objects that are proxies to the current7 active context.8 9- :copyright: (c) 2011 by Armin Ronacher.9+ :copyright: (c) 2014 by Armin Ronacher.10 :license: BSD, see LICENSE for more details.11 """12 13 from functools import partial31 unmodified linesmodified:flask/helpers.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~5 6 Implements various helpers.7 8- :copyright: (c) 2011 by Armin Ronacher.8+ :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 12 import os842 unmodified linesmodified:flask/json.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~5 6 Implementation helpers for the JSON support in Flask.7 8- :copyright: (c) 2012 by Armin Ronacher.8+ :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 import io12 import uuid231 unmodified linesmodified:flask/logging.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~5 6 Implements the logging support for Flask.7 8- :copyright: (c) 2011 by Armin Ronacher.8+ :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 12 from __future__ import absolute_import33 unmodified linesmodified:flask/module.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~5 6 Implements a class that represents module blueprints.7 8- :copyright: (c) 2011 by Armin Ronacher.8+ :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 12 import os30 unmodified linesmodified:flask/sessions.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~5 6 Implements cookie based sessions based on itsdangerous.7 8- :copyright: (c) 2012 by Armin Ronacher.8+ :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 12 import uuid353 unmodified linesmodified:flask/signals.py+1 added-1 removed
4 unmodified lines5 6 Implements signals based on blinker if available, otherwise7 falls silently back to a noop8 9- :copyright: (c) 2011 by Armin Ronacher.9+ :copyright: (c) 2014 by Armin Ronacher.10 :license: BSD, see LICENSE for more details.11 """12 signals_available = False13 try:42 unmodified linesmodified:flask/templating.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~~~5 6 Implements the bridge to Jinja2.7 8- :copyright: (c) 2011 by Armin Ronacher.8+ :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 import posixpath12 from jinja2 import BaseLoader, Environment as BaseEnvironment, \131 unmodified linesmodified:flask/testing.py+1 added-1 removed
4 unmodified lines5 6 Implements test support helpers. This module is lazily imported7 and usually not used in production environments.8 9- :copyright: (c) 2011 by Armin Ronacher.9+ :copyright: (c) 2014 by Armin Ronacher.10 :license: BSD, see LICENSE for more details.11 """12 13 from contextlib import contextmanager111 unmodified linesmodified:flask/views.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~5 6 This module provides class-based views inspired by the ones in Django.7 8- :copyright: (c) 2011 by Armin Ronacher.8+ :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 from .globals import request12 from ._compat import with_metaclass137 unmodified linesmodified:flask/wrappers.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~5 6 Implements the WSGI wrappers (request and response).7 8- :copyright: (c) 2011 by Armin Ronacher.8+ :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 12 from werkzeug.wrappers import Request as RequestBase, Response as ResponseBase172 unmodified linesmodified:scripts/flask-07-upgrade.py+1 added-1 removed
14 unmodified lines15 attempts to accomplish is impossible to do statically it tries to support16 the most common patterns at least. The diff it generates should be17 hand reviewed and not applied blindly without making backups.18 19- :copyright: (c) Copyright 2011 by Armin Ronacher.19+ :copyright: (c) Copyright 2014 by Armin Ronacher.20 :license: see LICENSE for more details.21 """22 import re23 import os274 unmodified linesmodified:scripts/flaskext_compat.py+1 added-1 removed
10 unmodified lines11 import flaskext_compat12 flaskext_compat.activate()13 from flask.ext import foo14 15- :copyright: (c) 2011 by Armin Ronacher.15+ :copyright: (c) 2014 by Armin Ronacher.16 :license: BSD, see LICENSE for more details.17 """18 import sys19 import os106 unmodified linesmodified:scripts/flaskext_test.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~~~~~~~~5 6 Tests the Flask extensions.7 8- :copyright: (c) 2010 by Ali Afshar.8+ :copyright: (c) 2014 by Ali Afshar.9 :license: BSD, see LICENSE for more details.10 """11 12 import os297 unmodified linesmodified:scripts/make-release.py+1 added-1 removed
5 unmodified lines6 7 Helper script that performs a release. Does pretty much everything8 automatically for us.9 10- :copyright: (c) 2011 by Armin Ronacher.10+ :copyright: (c) 2014 by Armin Ronacher.11 :license: BSD, see LICENSE for more details.12 """13 import sys14 import os137 unmodified lines