[ckan-changes] [okfn/ckan] 488589: Fix for non-open licenses appearing open

GitHub noreply at github.com
Thu Aug 16 15:25:25 UTC 2012


  Branch: refs/heads/release-v1.8
  Home:   https://github.com/okfn/ckan
  Commit: 4885895c0f8c0bced0f5392b8938aadcc6004cfd
      https://github.com/okfn/ckan/commit/4885895c0f8c0bced0f5392b8938aadcc6004cfd
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2012-08-16 (Thu, 16 Aug 2012)

  Changed paths:
    M ckan/model/license.py

  Log Message:
  -----------
  Fix for non-open licenses appearing open

The 'This dataset is openly licensed' icon was appearing next to
non-open datasets as well. The problem was that DefaultLicense was
returning u"False" (a string) for boolean attributes such as
is_okd_compliant. Change the class so it no longer turns non-string
attributes into unicode strings when you access them.





More information about the ckan-changes mailing list