[ckan-changes] [okfn/ckan] ea4541: [#1705] Add vocab=None argument to Package.add_tag...

GitHub noreply at github.com
Wed Feb 1 18:16:13 UTC 2012


  Branch: refs/heads/feature-1698-tag-taxonomies
  Home:   https://github.com/okfn/ckan
  Commit: ea4541ac0311bc9f9f1472998479d17d54484c31
      https://github.com/okfn/ckan/commit/ea4541ac0311bc9f9f1472998479d17d54484c31
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2012-02-01 (Wed, 01 Feb 2012)

  Changed paths:
    M ckan/model/package.py

  Log Message:
  -----------
  [#1705] Add vocab=None argument to Package.add_tag_by_name()

And change the method to use free tags only if no vocab is given,
otherwise use tags from the given vocab only.


  Commit: c6a14378114e3ae4617eed9619fa69ead1298117
      https://github.com/okfn/ckan/commit/c6a14378114e3ae4617eed9619fa69ead1298117
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2012-02-01 (Wed, 01 Feb 2012)

  Changed paths:
    M ckan/model/package.py

  Log Message:
  -----------
  Tidy up Package.tags_ordered()

Add a docstring, and use key= and attrgetter instead of cmp= and lambda


  Commit: 9f5d62bdbd2d33a6dea28be3ce3ab9c8fedc29af
      https://github.com/okfn/ckan/commit/9f5d62bdbd2d33a6dea28be3ce3ab9c8fedc29af
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2012-02-01 (Wed, 01 Feb 2012)

  Changed paths:
    M ckan/model/tag.py

  Log Message:
  -----------
  [#1705] Tidy up order of keyword args in Tag.by_name()


  Commit: 7ea9e639547d37326dfc3c36d4aedd2af9b963e0
      https://github.com/okfn/ckan/commit/7ea9e639547d37326dfc3c36d4aedd2af9b963e0
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2012-02-01 (Wed, 01 Feb 2012)

  Changed paths:
    M ckan/lib/dictization/model_save.py
  M ckan/logic/action/delete.py
  M ckan/logic/action/get.py
  M ckan/logic/action/update.py
  M ckan/model/tag.py
  M ckan/model/vocabulary.py

  Log Message:
  -----------
  [#1705] Make vocabulary.get() a module function

...no longer a classmethod. It doesn't seem to need to be a classmethod,
and this way you can do:

    import vocabulary
    some_vocab = vocabulary.get(some_name)

Instead of having to do: `vocabulary.Vocabulary.get(some_name)`, which
looks too much like Java.


  Commit: d5dd1a5fe6abb35e10ec19c5b5e83d77416c82db
      https://github.com/okfn/ckan/commit/d5dd1a5fe6abb35e10ec19c5b5e83d77416c82db
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2012-02-01 (Wed, 01 Feb 2012)

  Changed paths:
    M ckan/model/package.py

  Log Message:
  -----------
  [#1705] Fix Package.tags_ordered()

Broken since commit c6a1437


  Commit: 8bfa729fa91f3e6c68ce5129628dad90e425d0c1
      https://github.com/okfn/ckan/commit/8bfa729fa91f3e6c68ce5129628dad90e425d0c1
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2012-02-01 (Wed, 01 Feb 2012)

  Changed paths:
    M ckan/lib/dictization/model_save.py
  M ckan/logic/converters.py
  M ckan/tests/logic/test_converters.py

  Log Message:
  -----------
  Merge branch 'feature-1698-tag-taxonomies' of github.com:okfn/ckan into feature-1698-tag-taxonomies


Compare: https://github.com/okfn/ckan/compare/84386d7...8bfa729


More information about the ckan-changes mailing list