[ckan-changes] [okfn/ckan] bfb366: Fix crash in stage 3 when ValidationErrors occur

GitHub noreply at github.com
Thu Mar 7 16:53:09 UTC 2013


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

  Changed paths:
    M ckan/controllers/package.py

  Log Message:
  -----------
  Fix crash in stage 3 when ValidationErrors occur

Basically when raising a ValidationError on stage 3 of the dataset
creation, the new_metadata method didn't set context before
_setup_template_variables was called, raising an exception.

Note that this prevents the exception, but the message is still not
shown (see #586).





More information about the ckan-changes mailing list