Skip to content
Myr

Happy New Year 2014

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 · parent a3a2f52 · 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

45 files+45 added−45 removed

modified:examples/flaskr/flaskr_tests.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~56 Tests the Flaskr application.78 :copyright: (c) 2010 by Armin Ronacher.8 :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""11import os12import flaskr
63 unmodified lines
modified:examples/flaskr/flaskr.py+1 added-1 removed
4 unmodified lines
56 A microblog example application written as Flask tutorial with7 Flask and sqlite3.89 :copyright: (c) 2010 by Armin Ronacher.9 :copyright: (c) 2014 by Armin Ronacher.10 :license: BSD, see LICENSE for more details.11"""1213from sqlite3 import dbapi2 as sqlite3
91 unmodified lines
modified:examples/jqueryexample/jqueryexample.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~56 A simple application that shows how Flask and jQuery get along.78 :copyright: (c) 2010 by Armin Ronacher.8 :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""11from flask import Flask, jsonify, render_template, request12app = Flask(__name__)
17 unmodified lines
modified:examples/minitwit/minitwit_tests.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~56 Tests the MiniTwit application.78 :copyright: (c) 2010 by Armin Ronacher.8 :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""11import os12import minitwit
137 unmodified lines
modified:examples/minitwit/minitwit.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~56 A microblogging application written with Flask and sqlite3.78 :copyright: (c) 2010 by Armin Ronacher.8 :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""1112import time
243 unmodified lines
modified:flask/ext/__init__.py+1 added-1 removed
12 unmodified lines
1314 We're switching from namespace packages because it was just too painful for15 everybody involved.1617 :copyright: (c) 2011 by Armin Ronacher.17 :copyright: (c) 2014 by Armin Ronacher.18 :license: BSD, see LICENSE for more details.19"""2021
8 unmodified lines
modified:flask/testsuite/__init__.py+1 added-1 removed
4 unmodified lines
56 Tests Flask itself. The majority of Flask is already tested7 as part of Werkzeug.89 :copyright: (c) 2011 by Armin Ronacher.9 :copyright: (c) 2014 by Armin Ronacher.10 :license: BSD, see LICENSE for more details.11"""1213from __future__ import print_function
233 unmodified lines
modified:flask/testsuite/appctx.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~~~~~56 Tests the application context.78 :copyright: (c) 2012 by Armin Ronacher.8 :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""1112import flask
106 unmodified lines
modified:flask/testsuite/basic.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~~~~56 The basic functionality.78 :copyright: (c) 2011 by Armin Ronacher.8 :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""1112import re
1242 unmodified lines
modified:flask/testsuite/blueprints.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~~~~~~~~~56 Blueprints (and currently modules)78 :copyright: (c) 2011 by Armin Ronacher.8 :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""1112import flask
778 unmodified lines
modified:flask/testsuite/config.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~~~~~56 Configuration and instances.78 :copyright: (c) 2011 by Armin Ronacher.8 :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""1112import os
300 unmodified lines
modified:flask/testsuite/deprecations.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~56 Tests deprecation support.78 :copyright: (c) 2011 by Armin Ronacher.8 :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""1112import flask
12 unmodified lines
modified:flask/testsuite/examples.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~~~~~~~56 Tests the examples.78 :copyright: (c) 2011 by Armin Ronacher.8 :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""11import os12import unittest
26 unmodified lines
modified:flask/testsuite/ext.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~~56 Tests the extension import thing.78 :copyright: (c) 2011 by Armin Ronacher.8 :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""1112import sys
122 unmodified lines
modified:flask/testsuite/helpers.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~~~~~~56 Various helpers.78 :copyright: (c) 2011 by Armin Ronacher.8 :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""1112import os
581 unmodified lines
modified:flask/testsuite/regression.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~~~~~~~~~56 Tests regressions.78 :copyright: (c) 2011 by Armin Ronacher.8 :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""1112import os
104 unmodified lines
modified:flask/testsuite/reqctx.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~~~~~56 Tests the request context.78 :copyright: (c) 2012 by Armin Ronacher.8 :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""1112import flask
189 unmodified lines
modified:flask/testsuite/signals.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~~~~~~56 Signalling.78 :copyright: (c) 2011 by Armin Ronacher.8 :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""1112import flask
141 unmodified lines
modified:flask/testsuite/subclassing.py+1 added-1 removed
4 unmodified lines
56 Test that certain behavior of flask can be customized by7 subclasses.89 :copyright: (c) 2011 by Armin Ronacher.9 :copyright: (c) 2014 by Armin Ronacher.10 :license: BSD, see LICENSE for more details.11"""12import flask13import unittest
33 unmodified lines
modified:flask/testsuite/templating.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~~~~~~~~~56 Template functionality78 :copyright: (c) 2011 by Armin Ronacher.8 :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""1112import flask
290 unmodified lines
modified:flask/testsuite/testing.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~~~~~~56 Test client and more.78 :copyright: (c) 2011 by Armin Ronacher.8 :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""1112import flask
230 unmodified lines
modified:flask/testsuite/views.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~~~~56 Pluggable views.78 :copyright: (c) 2011 by Armin Ronacher.8 :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""1112import flask
157 unmodified lines
modified:flask/__init__.py+1 added-1 removed
4 unmodified lines
56 A microframework based on Werkzeug. It's extensively documented7 and follows best practice patterns.89 :copyright: (c) 2011 by Armin Ronacher.9 :copyright: (c) 2014 by Armin Ronacher.10 :license: BSD, see LICENSE for more details.11"""1213__version__ = '0.10.2-dev'
37 unmodified lines
modified:flask/_compat.py+1 added-1 removed
5 unmodified lines
6 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.910 :copyright: (c) 2013 by Armin Ronacher.10 :copyright: (c) 2014 by Armin Ronacher.11 :license: BSD, see LICENSE for more details.12"""13import sys14
59 unmodified lines
modified:flask/app.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~56 This module implements the central WSGI application object.78 :copyright: (c) 2011 by Armin Ronacher.8 :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""1112import os
1830 unmodified lines
modified:flask/blueprints.py+1 added-1 removed
4 unmodified lines
56 Blueprints are the recommended way to implement larger or more7 pluggable applications in Flask 0.7 and later.89 :copyright: (c) 2011 by Armin Ronacher.9 :copyright: (c) 2014 by Armin Ronacher.10 :license: BSD, see LICENSE for more details.11"""12from functools import update_wrapper13
388 unmodified lines
modified:flask/config.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~56 Implements the configuration related objects.78 :copyright: (c) 2011 by Armin Ronacher.8 :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""1112import imp
156 unmodified lines
modified:flask/ctx.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~56 Implements the objects required to keep the context.78 :copyright: (c) 2011 by Armin Ronacher.8 :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""1112from __future__ import with_statement
387 unmodified lines
modified:flask/debughelpers.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~56 Various helpers to make the development experience better.78 :copyright: (c) 2011 by Armin Ronacher.81 :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""11from ._compat import implements_to_string12
75 unmodified lines
modified:flask/exthook.py+1 added-1 removed
14 unmodified lines
15 everybody involved.1617 This is used by `flask.ext`.1819 :copyright: (c) 2011 by Armin Ronacher.19 :copyright: (c) 2014 by Armin Ronacher.20 :license: BSD, see LICENSE for more details.21"""22import sys23import os
97 unmodified lines
modified:flask/globals.py+1 added-1 removed
4 unmodified lines
56 Defines all the global objects that are proxies to the current7 active context.89 :copyright: (c) 2011 by Armin Ronacher.9 :copyright: (c) 2014 by Armin Ronacher.10 :license: BSD, see LICENSE for more details.11"""1213from functools import partial
31 unmodified lines
modified:flask/helpers.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~56 Implements various helpers.78 :copyright: (c) 2011 by Armin Ronacher.8 :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""1112import os
842 unmodified lines
modified:flask/json.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~56 Implementation helpers for the JSON support in Flask.78 :copyright: (c) 2012 by Armin Ronacher.8 :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""11import io12import uuid
231 unmodified lines
modified:flask/logging.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~56 Implements the logging support for Flask.78 :copyright: (c) 2011 by Armin Ronacher.8 :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""1112from __future__ import absolute_import
33 unmodified lines
modified:flask/module.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~56 Implements a class that represents module blueprints.78 :copyright: (c) 2011 by Armin Ronacher.8 :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""1112import os
30 unmodified lines
modified:flask/sessions.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~56 Implements cookie based sessions based on itsdangerous.78 :copyright: (c) 2012 by Armin Ronacher.8 :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""1112import uuid
320 unmodified lines
modified:flask/signals.py+1 added-1 removed
4 unmodified lines
56 Implements signals based on blinker if available, otherwise7 falls silently back to a noop89 :copyright: (c) 2011 by Armin Ronacher.9 :copyright: (c) 2014 by Armin Ronacher.10 :license: BSD, see LICENSE for more details.11"""12signals_available = False13try:
42 unmodified lines
modified:flask/templating.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~56 Implements the bridge to Jinja2.78 :copyright: (c) 2011 by Armin Ronacher.8 :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""11import posixpath12from jinja2 import BaseLoader, Environment as BaseEnvironment, \
131 unmodified lines
modified:flask/testing.py+1 added-1 removed
4 unmodified lines
56 Implements test support helpers. This module is lazily imported7 and usually not used in production environments.89 :copyright: (c) 2011 by Armin Ronacher.9 :copyright: (c) 2014 by Armin Ronacher.10 :license: BSD, see LICENSE for more details.11"""1213from contextlib import contextmanager
111 unmodified lines
modified:flask/views.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~56 This module provides class-based views inspired by the ones in Django.78 :copyright: (c) 2011 by Armin Ronacher.8 :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""11from .globals import request12from ._compat import with_metaclass
137 unmodified lines
modified:flask/wrappers.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~56 Implements the WSGI wrappers (request and response).78 :copyright: (c) 2011 by Armin Ronacher.8 :copyright: (c) 2014 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""1112from werkzeug.wrappers import Request as RequestBase, Response as ResponseBase
172 unmodified lines
modified:scripts/flask-07-upgrade.py+1 added-1 removed
14 unmodified lines
15 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.1819 :copyright: (c) Copyright 2011 by Armin Ronacher.19 :copyright: (c) Copyright 2014 by Armin Ronacher.20 :license: see LICENSE for more details.21"""22import re23import os
274 unmodified lines
modified:scripts/flaskext_compat.py+1 added-1 removed
10 unmodified lines
11 import flaskext_compat12 flaskext_compat.activate()13 from flask.ext import foo1415 :copyright: (c) 2011 by Armin Ronacher.15 :copyright: (c) 2014 by Armin Ronacher.16 :license: BSD, see LICENSE for more details.17"""18import sys19import os
106 unmodified lines
modified:scripts/flaskext_test.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~~~~56 Tests the Flask extensions.78 :copyright: (c) 2010 by Ali Afshar.8 :copyright: (c) 2014 by Ali Afshar.9 :license: BSD, see LICENSE for more details.10"""1112import os
297 unmodified lines
modified:scripts/make-release.py+1 added-1 removed
5 unmodified lines
67 Helper script that performs a release. Does pretty much everything8 automatically for us.910 :copyright: (c) 2011 by Armin Ronacher.10 :copyright: (c) 2014 by Armin Ronacher.11 :license: BSD, see LICENSE for more details.12"""13import sys14import os
137 unmodified lines