[ckan-changes] [okfn/ckan] 8d514f: [#2872] Fix for non-open licenses appearing open

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


  Branch: refs/heads/2872-bug-non-open-licenses-marked-as-open
  Home:   https://github.com/okfn/ckan
  Commit: 8d514fce36157999adad84c9deed7955e15aeb68
      https://github.com/okfn/ckan/commit/8d514fce36157999adad84c9deed7955e15aeb68
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2012-08-16 (Thu, 16 Aug 2012)

  Changed paths:
    M ckan/model/license.py

  Log Message:
  -----------
  [#2872] 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