Upgrading Flask 0.1 to 0.2
Review needed0.1 → 0.2New7Changed4Fixed1
Review neededUpgrade verdict
4 behavior changes.
In plain terms
- Refactors internal request dispatching.
- Server listens on 127.0.0.1 by default now to fix issues with chrome.
- Adds module support and refactors internal request handling to better support pluggable applications.
- Improves error reporting on missing secret keys.
Must act Nothing to change
No breaking, platform, security or deprecated items in this range.
Nothing in this upgrade needs a code or configuration change.
API changes
Generated by DepDelta from published Python source. Not mixed with prose notes.
- removed:
constructor Request(environ) - removed:
method Flask.match_request() - removed:
method Flask.open_resource(resource) - changed:
class Flask(object) → class Flask(_PackageBoundObject) - changed:
constructor Flask(package_name) → constructor Flask(import_name) - changed:
method Flask.add_url_rule(rule, endpoint, **options) → method Flask.add_url_rule(rule, endpoint=…, view_func=…, **options) - added:
class Module(_PackageBoundObject) - added:
class Session(SecureCookie) - added:
constructor Module(import_name, name=…, url_prefix=…) - added:
field Flask.permanent_session_lifetime - added:
field Flask.use_x_sendfile - added:
field Request.endpoint - added:
field Request.routing_exception - added:
field Request.view_args - added:
field Session.permanent - added:
function get_template_attribute(template_name, attribute) - added:
function jsonify(*args, **kwargs) - added:
function send_file(filename_or_fp, mimetype=…, as_attachment=…, attachment_filename=…) - added:
method Flask.register_module(module, **options) - added:
method Flask.template_filter(name=…) - added:
method Module.add_url_rule(rule, endpoint, view_func=…, **options) - added:
method Module.after_app_request(f) - added:
method Module.after_request(f) - added:
method Module.app_context_processor(f) - added:
method Module.before_app_request(f) - added:
method Module.before_request(f) - added:
method Module.context_processor(f) - added:
method Module.route(rule, **options) - added:
property Request.json - added:
property Request.module - added:
variable json_available