Merge pull request #1303 from Parkayun/master
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Happy New Year 2015
authored by Markus Unterwaditzer · committed by Markus Unterwaditzer · parents 4fde65e, 33534bb · Browse files · 48 files·+48 added−48 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
48 files+48 added−48 removed
- tests:+16 added−16 removed
- other:+32 added−32 removed
Provenance
- Commit
5b98266- Tree
d8f4c9b- Author
Markus Unterwaditzer <markus@unterwaditzer.net>- Committer
Markus Unterwaditzer <markus@unterwaditzer.net>- Parent 1
4fde65e- Parent 2
33534bb
48 files changed+48 added−48 removed
modified:docs/conf.py+1 added-1 removed
41 unmodified lines42 master_doc = 'index'43 44 # General information about the project.45 project = u'Flask'46-copyright = u'2014, Armin Ronacher'46+copyright = u'2015, Armin Ronacher'47 48 # The version info for the project you're documenting, acts as replacement for49 # |version| and |release|, also used in various other places throughout the50 # built documents.221 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) 2014 by Armin Ronacher.9+ :copyright: (c) 2015 by Armin Ronacher.10 :license: BSD, see LICENSE for more details.11 """12 13 import os97 unmodified linesmodified:examples/flaskr/test_flaskr.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~5 6 Tests the Flaskr application.7 8- :copyright: (c) 2014 by Armin Ronacher.8+ :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 12 import pytest65 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) 2014 by Armin Ronacher.8+ :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 from flask import Flask, jsonify, render_template, request12 app = Flask(__name__)13 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) 2014 by Armin Ronacher.8+ :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 12 import time244 unmodified linesmodified:examples/minitwit/test_minitwit.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~5 6 Tests the MiniTwit application.7 8- :copyright: (c) 2014 by Armin Ronacher.8+ :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 import os12 import minitwit139 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) 2014 by Armin Ronacher.17+ :copyright: (c) 2015 by Armin Ronacher.18 :license: BSD, see LICENSE for more details.19 """20 21 8 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) 2014 by Armin Ronacher.9+ :copyright: (c) 2015 by Armin Ronacher.10 :license: BSD, see LICENSE for more details.11 """12 13 __version__ = '0.11-dev'36 unmodified linesmodified:flask/__main__.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~5 6 Alias for flask.run for the command line.7 8- :copyright: (c) 2014 by Armin Ronacher.8+ :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 12 3 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) 2014 by Armin Ronacher.10+ :copyright: (c) 2015 by Armin Ronacher.11 :license: BSD, see LICENSE for more details.12 """13 import sys14 83 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) 2014 by Armin Ronacher.8+ :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 12 import os1897 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) 2014 by Armin Ronacher.9+ :copyright: (c) 2015 by Armin Ronacher.10 :license: BSD, see LICENSE for more details.11 """12 from functools import update_wrapper13 401 unmodified linesmodified:flask/cli.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~5 6 A simple command line application to run flask apps.7 8- :copyright: (c) 2014 by Armin Ronacher.8+ :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 12 import os486 unmodified linesmodified:flask/config.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~5 6 Implements the configuration related objects.7 8- :copyright: (c) 2014 by Armin Ronacher.8+ :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 12 import imp246 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) 2014 by Armin Ronacher.8+ :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 12 from __future__ import with_statement383 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) 2014 by Armin Ronacher.8+ :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 from ._compat import implements_to_string, text_type12 from .app import Flask143 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) 2014 by Armin Ronacher.19+ :copyright: (c) 2015 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) 2014 by Armin Ronacher.9+ :copyright: (c) 2015 by Armin Ronacher.10 :license: BSD, see LICENSE for more details.11 """12 13 from functools import partial48 unmodified linesmodified:flask/helpers.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~5 6 Implements various helpers.7 8- :copyright: (c) 2014 by Armin Ronacher.8+ :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 12 import os891 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) 2014 by Armin Ronacher.8+ :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 import io12 import uuid243 unmodified linesmodified:flask/logging.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~5 6 Implements the logging support for Flask.7 8- :copyright: (c) 2014 by Armin Ronacher.8+ :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 12 from __future__ import absolute_import78 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) 2014 by Armin Ronacher.8+ :copyright: (c) 2015 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 noop.8 9- :copyright: (c) 2014 by Armin Ronacher.9+ :copyright: (c) 2015 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) 2014 by Armin Ronacher.8+ :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 from jinja2 import BaseLoader, Environment as BaseEnvironment, \12 TemplateNotFound126 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) 2014 by Armin Ronacher.9+ :copyright: (c) 2015 by Armin Ronacher.10 :license: BSD, see LICENSE for more details.11 """12 13 from contextlib import contextmanager115 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) 2014 by Armin Ronacher.8+ :copyright: (c) 2015 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) 2014 by Armin Ronacher.8+ :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 12 from werkzeug.wrappers import Request as RequestBase, Response as ResponseBase189 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 2014 by Armin Ronacher.19+ :copyright: (c) Copyright 2015 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) 2014 by Armin Ronacher.15+ :copyright: (c) 2015 by Armin Ronacher.16 :license: BSD, see LICENSE for more details.17 """18 import sys19 import os106 unmodified linesmodified:scripts/flaskext_tester.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~~~~~~~~5 6 Tests the Flask extensions.7 8- :copyright: (c) 2014 by Ali Afshar.8+ :copyright: (c) 2015 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) 2014 by Armin Ronacher.10+ :copyright: (c) 2015 by Armin Ronacher.11 :license: BSD, see LICENSE for more details.12 """13 import sys14 import os138 unmodified linesmodified:tests/conftest.py+1 added-1 removed
1 unmodified line2 """3 tests.conftest4 ~~~~~~~~~~~~~~5 6- :copyright: (c) 2014 by the Flask Team, see AUTHORS for more details.6+ :copyright: (c) 2015 by the Flask Team, see AUTHORS for more details.7 :license: BSD, see LICENSE for more details.8 """9 import flask10 import os123 unmodified linesmodified:tests/test_appctx.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~5 6 Tests the application context.7 8- :copyright: (c) 2014 by Armin Ronacher.8+ :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 12 import pytest99 unmodified linesmodified:tests/test_basic.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~~~~~~~~5 6 The basic functionality.7 8- :copyright: (c) 2014 by Armin Ronacher.8+ :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 12 import pytest1566 unmodified linesmodified:tests/test_blueprints.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~~~5 6 Blueprints (and currently modules)7 8- :copyright: (c) 2014 by Armin Ronacher.8+ :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 12 import pytest565 unmodified linesmodified:tests/test_config.py+1 added-1 removed
1 unmodified line2 """3 tests.test_config4 ~~~~~~~~~~~~~~~~~5 6- :copyright: (c) 2014 by the Flask Team, see AUTHORS for more details.6+ :copyright: (c) 2015 by the Flask Team, see AUTHORS for more details.7 :license: BSD, see LICENSE for more details.8 """9 10 import pytest182 unmodified linesmodified:tests/test_deprecations.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~~~~~5 6 Tests deprecation support. Not used currently.7 8- :copyright: (c) 2014 by Armin Ronacher.8+ :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 12 import pytest38 unmodified linesmodified:tests/test_ext.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~~~~~~5 6 Tests the extension import thing.7 8- :copyright: (c) 2014 by Armin Ronacher.8+ :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 12 import sys175 unmodified linesmodified:tests/test_helpers.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~~~~~~~~~~5 6 Various helpers.7 8- :copyright: (c) 2014 by Armin Ronacher.8+ :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 12 import pytest624 unmodified linesmodified:tests/test_instance_config.py+1 added-1 removed
1 unmodified line2 """3 tests.test_instance4 ~~~~~~~~~~~~~~~~~~~5 6- :copyright: (c) 2014 by the Flask Team, see AUTHORS for more details.6+ :copyright: (c) 2015 by the Flask Team, see AUTHORS for more details.7 :license: BSD, see LICENSE for more details.8 """9 import os10 import sys124 unmodified linesmodified:tests/test_regression.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~~~~~~~~~~~~~5 6 Tests regressions.7 8- :copyright: (c) 2014 by Armin Ronacher.8+ :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 12 import pytest95 unmodified linesmodified:tests/test_reqctx.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~5 6 Tests the request context.7 8- :copyright: (c) 2014 by Armin Ronacher.8+ :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 12 import pytest172 unmodified linesmodified:tests/test_signals.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~~~~~~~~~~5 6 Signalling.7 8- :copyright: (c) 2014 by Armin Ronacher.8+ :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 12 import pytest166 unmodified linesmodified:tests/test_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) 2014 by Armin Ronacher.9+ :copyright: (c) 2015 by Armin Ronacher.10 :license: BSD, see LICENSE for more details.11 """12 import flask13 from logging import StreamHandler24 unmodified linesmodified:tests/test_templating.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~~~5 6 Template functionality7 8- :copyright: (c) 2014 by Armin Ronacher.8+ :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 12 import pytest351 unmodified linesmodified:tests/test_testing.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~5 6 Test client and more.7 8- :copyright: (c) 2014 by Armin Ronacher.8+ :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 import pytest12 230 unmodified linesmodified:tests/test_views.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~5 6 Pluggable views.7 8- :copyright: (c) 2014 by Armin Ronacher.8+ :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10 """11 12 import pytest150 unmodified linesmodified:LICENSE+1 added-1 removed
1-Copyright (c) 2014 by Armin Ronacher and contributors. See AUTHORS1+Copyright (c) 2015 by Armin Ronacher and contributors. See AUTHORS2 for more details.3 4 Some rights reserved.5 28 unmodified lines