[ckan-changes] [ckan/ckan] 93ac6b: Separate registration of IDatasetForm plugins and ...

GitHub noreply at github.com
Fri Aug 3 09:29:15 UTC 2018


  Branch: refs/heads/flask-separate-package-blueprints-and-plugins
  Home:   https://github.com/ckan/ckan
  Commit: 93ac6b004e9900343fd4ea22fdf0218342ab313d
      https://github.com/ckan/ckan/commit/93ac6b004e9900343fd4ea22fdf0218342ab313d
  Author: amercader <amercadero at gmail.com>
  Date:   2018-08-03 (Fri, 03 Aug 2018)

  Changed paths:
    M ckan/config/environment.py
    M ckan/config/middleware/flask_app.py
    M ckan/lib/plugins.py

  Log Message:
  -----------
  Separate registration of IDatasetForm plugins and blueprints

Blueprints need to be registered when there is an app available (ie
flask_app.py), but the actual IDatasetForm instances need to be readded
every time the environment is refreshed, as we reset them and start from
scratch. This happens eg when we explicitly load a plugin during tests
with `p.load()`.



      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the ckan-changes mailing list