[ckan-changes] [okfn/ckan] 5fe687: [#445] Only lookup strings in term translation tab...

GitHub noreply at github.com
Fri Feb 22 17:07:50 UTC 2013


  Branch: refs/heads/445-bug-multilingual-tests-failing-2
  Home:   https://github.com/okfn/ckan
  Commit: 5fe687381cc5fcf9cc340e98b921d7af38215a35
      https://github.com/okfn/ckan/commit/5fe687381cc5fcf9cc340e98b921d7af38215a35
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2013-02-22 (Fri, 22 Feb 2013)

  Changed paths:
    M ckanext/multilingual/plugin.py

  Log Message:
  -----------
  [#445] Only lookup strings in term translation table

This fixes the multilingual tests that are currently failing on master.

It seems that when the multilingual extension was written, package dicts
never contained ints as values. Now they do. But postgres cannot compare
an int to a string so it crashes. This commit changes the multilingual
plugin so that it only tries to lookup strings in the term translation
table, other types are just skipped.

Fixes #445.





More information about the ckan-changes mailing list