[ckan-changes] [ckan/ckan] 3b87cc: Fixes #2007

GitHub noreply at github.com
Wed Nov 19 13:31:13 UTC 2014


  Branch: refs/heads/2007-datastore-active-fix
  Home:   https://github.com/ckan/ckan
  Commit: 3b87cc0ecf9213c43f7e2a02bf8203ab51d0a0ec
      https://github.com/ckan/ckan/commit/3b87cc0ecf9213c43f7e2a02bf8203ab51d0a0ec
  Author: Ross Jones <ross at servercode.co.uk>
  Date:   2014-11-19 (Wed, 19 Nov 2014)

  Changed paths:
    M ckanext/datastore/plugin.py

  Log Message:
  -----------
  Fixes #2007

In the plugins before_show the datastore_active flag in the resource
dict would not be set if the sql query generated an exception.  This had
implications with pg 8.4 where the flag was not present because of a
query failure, but it was checked for in tests.

Have set the default to false and just overwrite it if the query does
not explode and if it returns a result.




More information about the ckan-changes mailing list