[ckan-changes] [ckan/ckan] ec7754: Flask extensions should use IBlueprint interface.

GitHub noreply at github.com
Mon May 30 15:14:40 UTC 2016


  Branch: refs/heads/poc-flask-views
  Home:   https://github.com/ckan/ckan
  Commit: ec7754483f0a8c824c493ad91d5722f7370196d2
      https://github.com/ckan/ckan/commit/ec7754483f0a8c824c493ad91d5722f7370196d2
  Author: Brook Elgie <specialbrew at gmail.com>
  Date:   2016-05-30 (Mon, 30 May 2016)

  Changed paths:
    M ckan/config/middleware.py
    M ckan/plugins/interfaces.py

  Log Message:
  -----------
  Flask extensions should use IBlueprint interface.

Flask extensions can register more than just routes for the app. So
change the extension point from IRoutes, to IBlueprint, a very simple
interface that has one method `get_blueprint`, enabling extensions to
return Flask Blueprint objects to be registered with the Flask app at
start up.




More information about the ckan-changes mailing list