[ckan-changes] [ckan/ckan] a63207: [#4801] Refactor processing of errors in NAVL
Adrià Mercader
noreply at github.com
Mon Dec 9 13:35:00 UTC 2019
Branch: refs/heads/py3-general-support-2
Home: https://github.com/ckan/ckan
Commit: a63207806c9474ed736c1a4fc774155042a45a51
https://github.com/ckan/ckan/commit/a63207806c9474ed736c1a4fc774155042a45a51
Author: amercader <amercadero at gmail.com>
Date: 2019-12-09 (Mon, 09 Dec 2019)
Changed paths:
M ckan/lib/navl/dictization_functions.py
Log Message:
-----------
[#4801] Refactor processing of errors in NAVL
At the end of the `validate` function run the errors are processed and
return as a dict. The current implementation was complex and
incompatible with Python 3, as it changed dictionaries inside loops.
Also it returned unnecessary key, eg before the changes:
{
'resources': [
{'position': [u'Missing value']}, {}],
'tags': [{}, {}, {}],
'extras': [{}, {}]
}
After the changes:
{
'resources: [
{'position': [u'Missing value']}
]
}
More information about the ckan-changes
mailing list