[ckan-changes] [ckan/ckan] 1a3906: [#3004] Upgrade Babel requirement, fix issues with...

GitHub noreply at github.com
Thu May 26 11:50:38 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/ckan/ckan
  Commit: 1a39062c3465b2529a44875e19786083e7fdc72e
      https://github.com/ckan/ckan/commit/1a39062c3465b2529a44875e19786083e7fdc72e
  Author: amercader <amercadero at gmail.com>
  Date:   2016-05-09 (Mon, 09 May 2016)

  Changed paths:
    M ckan/lib/helpers.py
    M ckan/lib/i18n.py
    M ckan/templates/snippets/language_selector.html
    M ckan/tests/controllers/test_home.py
    M requirements.in
    M requirements.txt

  Log Message:
  -----------
  [#3004] Upgrade Babel requirement, fix issues with language selector

The language selector did not work with Babel 2.3.4 because the URLs on
the option tags didn't contain the language code. This was caused
because we are passing the Babel `Locale` classes to the `url_for`
helper, which compares them against a list of string codes (eg `ca`).
On older Babel versions comparing eg `Locale('ca') == 'ca'` used to
work.

This includes the necessary changes both on the selector snippet and the
helper functions so we are comparing apples to apples.


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

  Changed paths:
    M ckan/lib/i18n.py
    M ckan/tests/legacy/test_coding_standards.py

  Log Message:
  -----------
  [#3004] PEP8 lib/i18n.py


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

  Changed paths:
    M requirements.in
    M requirements.txt

  Log Message:
  -----------
  [#3004] Upgrade pytz requirement


  Commit: 2836860c93db100f7661372fd3f60645e1cc7324
      https://github.com/ckan/ckan/commit/2836860c93db100f7661372fd3f60645e1cc7324
  Author: amercader <amercadero at gmail.com>
  Date:   2016-05-10 (Tue, 10 May 2016)

  Changed paths:
    M ckan/lib/helpers.py

  Log Message:
  -----------
  [#3004] Don't try to localize True/False as numbers

Not enought thorough checks meant that True/False were passed to Babel
to localize, which causes a crash on modern Babel versions.


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

  Changed paths:
    M ckan/tests/controllers/test_home.py

  Log Message:
  -----------
  [#3004] Smarter nose import


  Commit: 03973767c4751a51ea077012aa5dc1af4944c6a9
      https://github.com/ckan/ckan/commit/03973767c4751a51ea077012aa5dc1af4944c6a9
  Author: amercader <amercadero at gmail.com>
  Date:   2016-05-25 (Wed, 25 May 2016)

  Changed paths:
    R .travis.yml
    M Dockerfile
    M README.rst
    M ckan/controllers/api.py
    M ckan/controllers/feed.py
    M ckan/controllers/group.py
    M ckan/controllers/package.py
    M ckan/controllers/user.py
    M ckan/lib/helpers.py
    M ckan/lib/jinja_extensions.py
    R ckan/lib/lazyjson.py
    M ckan/lib/munge.py
    M ckan/lib/plugins.py
    M ckan/logic/action/create.py
    M ckan/logic/action/get.py
    M ckan/logic/action/update.py
    M ckan/plugins/toolkit.py
    M ckan/templates/group/index.html
    M ckan/templates/snippets/debug.html
    A ckan/templates/tests/broken_helper_as_attribute.html
    A ckan/templates/tests/broken_helper_as_item.html
    A ckan/templates/tests/helper_as_attribute.html
    A ckan/templates/tests/helper_as_item.html
    M ckan/tests/controllers/test_group.py
    M ckan/tests/controllers/test_organization.py
    M ckan/tests/controllers/test_package.py
    M ckan/tests/controllers/test_user.py
    M ckan/tests/factories.py
    M ckan/tests/helpers.py
    M ckan/tests/legacy/functional/test_pagination.py
    M ckan/tests/lib/test_helpers.py
    M ckan/tests/lib/test_munge.py
    M ckan/tests/logic/action/test_create.py
    M ckan/tests/logic/action/test_get.py
    M ckan/tests/logic/action/test_update.py
    M ckan/tests/plugins/test_toolkit.py
    M ckanext/datastore/db.py
    M ckanext/datastore/tests/test_upsert.py
    M ckanext/example_igroupform/plugin.py
    M ckanext/example_igroupform/tests/test_controllers.py
    A contrib/docker/docker-compose.yml
    M contrib/docker/my_init.d/50_configure
    M contrib/docker/postgresql/Dockerfile
    M contrib/docker/solr/Dockerfile
    R contrib/docker/solr/schema.xml
    M requirements.in
    M requirements.txt
    M setup.py

  Log Message:
  -----------
  Merge branch 'master' into 3004-upgrade-babel

Conflicts:
	requirements.in


  Commit: 28a95fd5d306453fbf6bf2bdea286a6ae23adfc3
      https://github.com/ckan/ckan/commit/28a95fd5d306453fbf6bf2bdea286a6ae23adfc3
  Author: Tyler Kennedy <tk at tkte.ch>
  Date:   2016-05-26 (Thu, 26 May 2016)

  Changed paths:
    M ckan/lib/helpers.py
    M ckan/lib/i18n.py
    M ckan/templates/snippets/language_selector.html
    M ckan/tests/controllers/test_home.py
    M ckan/tests/legacy/test_coding_standards.py
    M requirements.in
    M requirements.txt

  Log Message:
  -----------
  Merge pull request #3004 from ckan/3004-upgrade-babel

Upgrade Babel version


Compare: https://github.com/ckan/ckan/compare/dc3bb9eb01e8...28a95fd5d306


More information about the ckan-changes mailing list