[ckan-changes] [ckan/ckan] c3ffd5: Hook properly into Flask-Babel

GitHub noreply at github.com
Tue May 17 15:20:31 UTC 2016


  Branch: refs/heads/poc-flask-views.blueprint
  Home:   https://github.com/ckan/ckan
  Commit: c3ffd51cf5a659ffa030d56200c13bc37d3a31ab
      https://github.com/ckan/ckan/commit/c3ffd51cf5a659ffa030d56200c13bc37d3a31ab
  Author: amercader <amercadero at gmail.com>
  Date:   2016-05-16 (Mon, 16 May 2016)

  Changed paths:
    M ckan/common.py
    M ckan/config/middleware.py

  Log Message:
  -----------
  Hook properly into Flask-Babel

Translations should now work on Flask requests (there is still the issue
of string formatters).

This depends on a PR on Flask-Babel:
https://github.com/python-babel/flask-babel/pull/91


  Commit: 23d4dcf1204f84410412792f5bdee37831287f1f
      https://github.com/ckan/ckan/commit/23d4dcf1204f84410412792f5bdee37831287f1f
  Author: amercader <amercadero at gmail.com>
  Date:   2016-05-16 (Mon, 16 May 2016)

  Changed paths:
    M requirements.in
    M requirements.txt

  Log Message:
  -----------
  Bump flask-babel version


  Commit: f8773371afb4eb4b3ff80a67dca669f7dc17be1f
      https://github.com/ckan/ckan/commit/f8773371afb4eb4b3ff80a67dca669f7dc17be1f
  Author: amercader <amercadero at gmail.com>
  Date:   2016-05-16 (Mon, 16 May 2016)

  Changed paths:
    M ckanext/datastore/tests/test_search.py

  Log Message:
  -----------
  Fix two more test that weren't encoding things properly


  Commit: ccf7484375b63b3dca741ed7b0508fa68bbddb76
      https://github.com/ckan/ckan/commit/ccf7484375b63b3dca741ed7b0508fa68bbddb76
  Author: Brook Elgie <specialbrew at gmail.com>
  Date:   2016-05-16 (Mon, 16 May 2016)

  Changed paths:
    M ckan/config/middleware.py
    M dev-requirements.txt

  Log Message:
  -----------
  Add Flask-DebugToolbar to dev-requirements

Enabling the Flask debug toolbar will display debug information in a
panel on html pages. It requires a secret key in the config, and the
app.debug setting to be True.


  Commit: 491ac3e76da51a5ba46c7698b84ab96936c00ac7
      https://github.com/ckan/ckan/commit/491ac3e76da51a5ba46c7698b84ab96936c00ac7
  Author: Brook Elgie <specialbrew at gmail.com>
  Date:   2016-05-16 (Mon, 16 May 2016)

  Changed paths:
    M ckan/common.py
    M ckan/config/middleware.py
    M ckanext/datastore/tests/test_search.py
    M dev-requirements.txt
    M requirements.in
    M requirements.txt

  Log Message:
  -----------
  Merge branch 'poc-flask-views' of github.com:ckan/ckan into poc-flask-views.blueprint


  Commit: d508297efe9f61502c281c9c45c552a0e0703e6b
      https://github.com/ckan/ckan/commit/d508297efe9f61502c281c9c45c552a0e0703e6b
  Author: Brook Elgie <specialbrew at gmail.com>
  Date:   2016-05-16 (Mon, 16 May 2016)

  Changed paths:
    M ckan/config/middleware.py

  Log Message:
  -----------
  Wrap Flask app with Debug middleware.

Forgot to actually enable the debug toolbar correctly.


  Commit: 6a6c1f8e0fac326e70eece270181416d2455b967
      https://github.com/ckan/ckan/commit/6a6c1f8e0fac326e70eece270181416d2455b967
  Author: Brook Elgie <specialbrew at gmail.com>
  Date:   2016-05-16 (Mon, 16 May 2016)

  Changed paths:
    M ckan/config/middleware.py

  Log Message:
  -----------
  Merge branch 'poc-flask-views' of github.com:ckan/ckan into poc-flask-views.blueprint


  Commit: 0573641699719b6e92ea0513bdc46dd0ee33c6e5
      https://github.com/ckan/ckan/commit/0573641699719b6e92ea0513bdc46dd0ee33c6e5
  Author: Brook Elgie <specialbrew at gmail.com>
  Date:   2016-05-16 (Mon, 16 May 2016)

  Changed paths:
    M ckan/config/middleware.py
    M ckanext/example_flask_iroutes/plugin.py
    A ckanext/example_flask_iroutes/templates/about.html

  Log Message:
  -----------
  Jinja2 env init'd for basic template rendering


  Commit: f3761ba2f9f3dea35ba38560afccf2c34e237203
      https://github.com/ckan/ckan/commit/f3761ba2f9f3dea35ba38560afccf2c34e237203
  Author: Brook Elgie <specialbrew at gmail.com>
  Date:   2016-05-17 (Tue, 17 May 2016)

  Changed paths:
    M ckan/common.py
    M ckan/config/middleware.py
    M ckan/lib/helpers.py
    M ckanext/example_flask_iroutes/plugin.py

  Log Message:
  -----------
  Add h, c, to templates and make dual request obj.

h and c are added to the Flask app as context processors, though many of
the function are not yet Flask compatible. A custom Request object is
created to proxy attribute access to either Flask or Pylons depending on
the request source.


Compare: https://github.com/ckan/ckan/compare/0526697229a5...f3761ba2f9f3


More information about the ckan-changes mailing list