Skip to content

v4.0: ### Breaking changes

Compare
Choose a tag to compare
@snarfed snarfed released this 16 Sep 04:39
· 770 commits to main since this release
41c4355

Breaking changes

  • Migrate from webapp2 to Flask. webapp2 had a good run, but it's no longer actively developed, and Flask is one of the most widely adopted standalone web framework in the Python community.

  • Remove to() class methods. Instead, now pass redirect paths to Flask's as_view() function, eg:

    app = Flask()
    app.add_url_rule('/start', view_func=twitter.Callback.as_view('start', '/oauth_callback'))
  • Remove deprecated blogger_v2 module alias.

  • webutil: migrate webapp2 HTTP request handlers in the handlers module - XrdOrJrdHandler, HostMetaHandler, and HostMetaXrdsHandler - to Flask views in a new flask_util module.

Non-breaking changes

  • webutil: implement Webmention protocol in new webmention module.
  • webutil: add misc Flask utilities and helpers in new flask_util module.