[ckan-changes] [okfn/ckan] cd7974: Refactor form_to_db_schema_options

GitHub noreply at github.com
Fri Jul 6 14:01:57 UTC 2012


  Branch: refs/heads/master
  Home:   https://github.com/okfn/ckan
  Commit: cd7974b2be434d88d937f1fbad2042413b463c48
      https://github.com/okfn/ckan/commit/cd7974b2be434d88d937f1fbad2042413b463c48
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2012-07-06 (Fri, 06 Jul 2012)

  Changed paths:
    M ckan/lib/plugins.py

  Log Message:
  -----------
  Refactor form_to_db_schema_options

Make it call self.form_to_db_schema so that the form_to_db_schema()
methods of IDatasetForm extensions get called.

Also make it call new form_to_db_schema_api_create() and
form_to_db_schema_api_update() methods which could potentially be
overridden by extensions also.


  Commit: 90012807433047593f7acac22522af5bc1302ac6
      https://github.com/okfn/ckan/commit/90012807433047593f7acac22522af5bc1302ac6
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2012-07-06 (Fri, 06 Jul 2012)

  Changed paths:
    M ckan/templates/package/read.html

  Log Message:
  -----------
  Fix a crasher in package/read.html template

Sometimes c.pkg_dict has no member named groups (e.g. when there is an
active IDatasetForm plugin with a db_to_form_schema() method).


  Commit: a5bedce1d321752fd083a7a4ec10e263439e713d
      https://github.com/okfn/ckan/commit/a5bedce1d321752fd083a7a4ec10e263439e713d
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2012-07-06 (Fri, 06 Jul 2012)

  Changed paths:
    M ckan/logic/schema.py

  Log Message:
  -----------
  Add db_to_form_schema method

For IDatasetForm plugins to base their db_to_form_schema() dicts on


  Commit: 7f59f2539abfa009618d34deea087a97a4a94dba
      https://github.com/okfn/ckan/commit/7f59f2539abfa009618d34deea087a97a4a94dba
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2012-07-06 (Fri, 06 Jul 2012)

  Changed paths:
    M ckan/logic/schema.py

  Log Message:
  -----------
  Rename db_to_form_schema -> db_to_form_package_schema()


  Commit: 38fc15cfc0965e567444b2653ff5a36b3f33828b
      https://github.com/okfn/ckan/commit/38fc15cfc0965e567444b2653ff5a36b3f33828b
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2012-07-06 (Fri, 06 Jul 2012)

  Changed paths:
    M ckan/lib/plugins.py
    M ckan/logic/schema.py
    M ckan/tests/schema/test_schema.py
    M ckanext/publisher_form/forms.py
    M ckanext/test_tag_vocab_plugin.py

  Log Message:
  -----------
  Rename package_form_schema() -> form_to_db_package_schema()

The only purpose of this schema is to be used as a base schema by
IDatasetForm plugins for their form_to_db_schema() methods, hopefully
the new name makes that clearer


  Commit: c5553b8e0fdd3e0394c97880f343bee4615b2301
      https://github.com/okfn/ckan/commit/c5553b8e0fdd3e0394c97880f343bee4615b2301
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2012-07-06 (Fri, 06 Jul 2012)

  Changed paths:
    M ckan/logic/schema.py

  Log Message:
  -----------
  Add back in deprectated package_form_schema() for backwards compatibility


  Commit: efca8cb18ca6379a51cb81e59d347ecb370ec78c
      https://github.com/okfn/ckan/commit/efca8cb18ca6379a51cb81e59d347ecb370ec78c
  Author: kindly <kindly at gmail.com>
  Date:   2012-07-06 (Fri, 06 Jul 2012)

  Changed paths:
    M ckan/logic/schema.py

  Log Message:
  -----------
  [2627] fix some more date issues when displayed


Compare: https://github.com/okfn/ckan/compare/5629aade3691...efca8cb18ca6


More information about the ckan-changes mailing list