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

GitHub noreply at github.com
Thu Mar 28 15:42:11 UTC 2013


  Branch: refs/heads/716-pass-schema-in-context
  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.





More information about the ckan-changes mailing list