[ckan-changes] [okfn/ckan] b04aa6: Fix a db_to_form_package_schema() crash

GitHub noreply at github.com
Fri Aug 3 20:19:17 UTC 2012


  Branch: refs/heads/master
  Home:   https://github.com/okfn/ckan
  Commit: b04aa652d235bd88e37e07c9652a08c144c41176
      https://github.com/okfn/ckan/commit/b04aa652d235bd88e37e07c9652a08c144c41176
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2012-08-03 (Fri, 03 Aug 2012)

  Changed paths:
    M ckan/logic/schema.py

  Log Message:
  -----------
  Fix a db_to_form_package_schema() crash

When db_to_form_package_schema() was in use (e.g. when an IDatasetForm
plugin with a db_to_form_schema() method based on
db_to_form_package_schema() was active) then try to edit a package that
has some resources would crash with a 400 Bad Request.

Extremely difficult to debug.

This seems to fix it.





More information about the ckan-changes mailing list