[ckan-changes] [okfn/ckan] 6a4806: [#2750] Fix group controller using wrong schema

GitHub noreply at github.com
Wed Aug 1 12:58:47 UTC 2012


  Branch: refs/heads/2750-add-docs-and-examples-for-idatasetform-and-igroupform
  Home:   https://github.com/okfn/ckan
  Commit: 6a48063b971a5f6813c5034eace85e479b5308df
      https://github.com/okfn/ckan/commit/6a48063b971a5f6813c5034eace85e479b5308df
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2012-08-01 (Wed, 01 Aug 2012)

  Changed paths:
    M ckan/controllers/group.py

  Log Message:
  -----------
  [#2750] Fix group controller using wrong schema

Fix group controller calling form_to_db_schema() from IGroupForm plugin
when it should be using db_to_form_schema()


  Commit: 3ed510b2da164e566fc2c23eee84a495f6800cb3
      https://github.com/okfn/ckan/commit/3ed510b2da164e566fc2c23eee84a495f6800cb3
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2012-08-01 (Wed, 01 Aug 2012)

  Changed paths:
    M ckan/lib/plugins.py

  Log Message:
  -----------
  Refactor DefaultGroupForm's form_to_db_schema_options()

The form_to_db_schema() methods of IGroupForm plugins were not being
called if those plugins inherited from DefaultGroupForm. Refactor it in
the same way as DefaultDatasetForm's form_to_db_schema_options() method
was recently refactored.  Make it call self.form_to_db_schema so that
the form_to_db_schema() methods of IGroupForm 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: 5c63f301ae22f6f54a62afa0d0211be3cee628cb
      https://github.com/okfn/ckan/commit/5c63f301ae22f6f54a62afa0d0211be3cee628cb
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2012-08-01 (Wed, 01 Aug 2012)

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

  Log Message:
  -----------
  [#2570] Fix IGroupForm check_data_dict not being called

Make group_create() and group_update() call the check_data_dict()
methods of IGroupForm plugins, like package_create() and
package_update() do with IDatasetForm plugins.


  Commit: 025c1ebb51d1dc73cb70806384fd6cf08543c733
      https://github.com/okfn/ckan/commit/025c1ebb51d1dc73cb70806384fd6cf08543c733
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2012-08-01 (Wed, 01 Aug 2012)

  Log Message:
  -----------
  Merge branch 'master' of github.com:okfn/ckan into 2750-add-docs-and-examples-for-idatasetform-and-igroupform


Compare: https://github.com/okfn/ckan/compare/90e9a2f2e5ca...025c1ebb51d1


More information about the ckan-changes mailing list