[ckan-changes] [okfn/ckan] 3a5cc5: [#1705] Finish up Vocabulary model, API and tests

GitHub noreply at github.com
Thu Jan 26 16:46:44 UTC 2012


  Branch: refs/heads/feature-1698-tag-taxonomies
  Home:   https://github.com/okfn/ckan
  Commit: 3a5cc5e356b404fec8e1bf923a766cd61be2b3e7
      https://github.com/okfn/ckan/commit/3a5cc5e356b404fec8e1bf923a766cd61be2b3e7
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2012-01-26 (Thu, 26 Jan 2012)

  Changed paths:
    M ckan/lib/dictization/model_save.py
  M ckan/logic/action/create.py
  M ckan/logic/action/delete.py
  M ckan/logic/action/update.py
  M ckan/logic/auth/create.py
  M ckan/logic/auth/delete.py
  M ckan/logic/auth/update.py
  M ckan/logic/schema.py
  M ckan/logic/validators.py
  M ckan/model/vocabulary.py
  M ckan/tests/functional/api/model/test_vocabulary.py

  Log Message:
  -----------
  [#1705] Finish up Vocabulary model, API and tests

Add validation and authorization to vocabulary_create() logic action
function. Add new vocabulary_update() and vocabulary_delete() logic
action functions.

Add vocabulary_create(), vocabulary_update() and vocabulary_delete()
logic auth functions. These just authorize sysadmins only.

Add default_create_vocabulary_schema() and
default_update_vocabulary_schema(), and vocabulary_name_validator() and
vocabulary_id_not_changed() validators.

Add tests for creating, updating, deleting, listing and getting
vocabularies via the API.





More information about the ckan-changes mailing list