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

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


  Branch: refs/heads/master
  Home:   https://github.com/okfn/ckan
  Commit: aa710e43529f1f12b4d8c993e2e18409f3199c60
      https://github.com/okfn/ckan/commit/aa710e43529f1f12b4d8c993e2e18409f3199c60
  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