[ckan-changes] [okfn/ckan] ad0769: [#716] Allow to pass the schema as part of the con...

GitHub noreply at github.com
Tue Apr 9 13:17:50 UTC 2013


  Branch: refs/heads/master
  Home:   https://github.com/okfn/ckan
  Commit: ad07692ac6c1a8c23e4a5bba54bb9defe1a89621
      https://github.com/okfn/ckan/commit/ad07692ac6c1a8c23e4a5bba54bb9defe1a89621
  Author: amercader <amercadero at gmail.com>
  Date:   2013-03-28 (Thu, 28 Mar 2013)

  Changed paths:
    M ckan/logic/action/create.py
    M ckan/logic/action/get.py
    M ckan/logic/action/update.py

  Log Message:
  -----------
  [#716] Allow to pass the schema as part of the context

In some cases extensions need to tweak the schema used on package
creation or update. For instance harvesters may want to create a package
with a certain id, or relax the default tags schema. There used to be an
option via `form_to_db_schema_options` to provide a custom schema via
the context, but this was removed on the last IDatasetForm refactor.

This adds back the option to pass the schema as part of the context.


  Commit: 05bc0be1a14b7cae8a631b507e47faefbf7a2674
      https://github.com/okfn/ckan/commit/05bc0be1a14b7cae8a631b507e47faefbf7a2674
  Author: amercader <amercadero at gmail.com>
  Date:   2013-04-09 (Tue, 09 Apr 2013)

  Changed paths:
    M ckan/logic/action/create.py

  Log Message:
  -----------
  [#716] Fix typo in check_data_dict check


  Commit: 22c1845b277fae269dbb4d602937b660fc4d2658
      https://github.com/okfn/ckan/commit/22c1845b277fae269dbb4d602937b660fc4d2658
  Author: amercader <amercadero at gmail.com>
  Date:   2013-04-09 (Tue, 09 Apr 2013)

  Changed paths:
    M ckan/logic/action/create.py
    M ckan/logic/action/update.py

  Log Message:
  -----------
  [#716] Do not use provided schema on later package_show calls

Make sure that if users provide a schema in the context, it is only used
for creating or updating the packages, but not on the package_show call
at the end of the functions.


  Commit: 6b2d32fb8ff4cb7a3a8c06d8d029fd1c61bbcdba
      https://github.com/okfn/ckan/commit/6b2d32fb8ff4cb7a3a8c06d8d029fd1c61bbcdba
  Author: kindly <kindly at gmail.com>
  Date:   2013-04-09 (Tue, 09 Apr 2013)

  Changed paths:
    M bin/osx-postgres-mem.sh
    M bin/travis-build
    M ckan/config/deployment.ini_tmpl
    M ckan/controllers/api.py
    M ckan/controllers/group.py
    M ckan/lib/helpers.py
    M ckan/model/tag.py
    A ckan/templates/group/history.html
    A ckan/templates/group/snippets/history_revisions.html
    A ckan/templates/group/snippets/revisions_table.html
    A ckan/templates/package/history.html
    M ckan/templates/package/read_base.html
    M ckan/templates/package/search.html
    A ckan/templates/package/snippets/history_revisions.html
    M ckan/templates/package/snippets/package_basic_fields.html
    A ckan/templates/package/snippets/revisions_table.html
    A ckan/templates/revision/__init__.py
    A ckan/templates/revision/diff.html
    A ckan/templates/revision/list.html
    A ckan/templates/revision/read.html
    A ckan/templates/revision/read_base.html
    A ckan/templates/revision/snippets/revisions_list.html
    M ckanext/datastore/db.py
    M ckanext/datastore/plugin.py
    M ckanext/datastore/tests/test_configure.py
    A ckanext/example_idatasetform/templates/package/snippets/package_basic_fields.html
    M ckanext/example_idatasetform/templates/package/snippets/package_metadata_fields.html
    R doc/contrib.rst
    M doc/index.rst
    M doc/install-from-source.rst
    M doc/legacy-api.rst
    M doc/test.rst
    R doc/user-stories-list.rst
    R doc/user-stories.rst
    M test-core.ini

  Log Message:
  -----------
  Merge branch 'master' into 716-pass-schema-in-context


Compare: https://github.com/okfn/ckan/compare/5df70179acab...6b2d32fb8ff4


More information about the ckan-changes mailing list