Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MJU-POPS
ckanext-dgu
Commits
56857368
Commit
56857368
authored
Jul 26, 2016
by
Marko Kuder
Browse files
fixed saving of file links (and other fields)
parent
8242fcc5
Changes
1
Hide whitespace changes
Inline
Side-by-side
ckanext/dgu/forms/dataset_form.py
View file @
56857368
...
...
@@ -243,7 +243,7 @@ class DatasetForm(p.SingletonPlugin):
'geographic_granularity'
:
[
ignore_missing
,
use_other
,
unicode
,
convert_to_extras
],
'geographic_granularity-other'
:
[
ignore_missing
],
#'geographic_coverage': [ignore_missing, convert_geographic_to_db, convert_to_extras],
'geographic_coverage'
:
[
convert_to_extras
,
not_empty
,
unicode
],
'geographic_coverage'
:
[
not_empty
,
unicode
,
convert_to_extras
],
'temporal_granularity'
:
[
ignore_missing
,
use_other
,
unicode
,
convert_to_extras
],
'temporal_granularity-other'
:
[
ignore_missing
],
'temporal_coverage-from'
:
[
ignore_missing
,
date_to_db
,
convert_to_extras
],
...
...
@@ -380,18 +380,18 @@ class DatasetForm(p.SingletonPlugin):
'sla'
:
[
convert_from_extras
,
ignore_missing
],
'national_statistic'
:
[
convert_from_extras
,
ignore_missing
],
'podrocje_id'
:
[
unicode
,
convert_from_extras
],
'podrocje_name'
:
[
ignore_missing
,
convert_from_extras
],
'podrocje_id'
:
[
convert_from_extras
],
'podrocje_name'
:
[
convert_from_extras
,
ignore_missing
],
'dostopnost_id'
:
[
unicode
,
convert_from_extras
],
'dostopnost_desc'
:
[
ignore_missing
,
convert_from_extras
],
'dostopnost_id'
:
[
convert_from_extras
],
'dostopnost_desc'
:
[
convert_from_extras
,
ignore_missing
],
'povezanost_desc'
:
[
ignore_missing
,
unicode
,
convert_from_extras
],
'povezanost_desc'
:
[
convert_from_extras
,
ignore_missing
],
'vrsta_pravne_podlage'
:
[
ignore_missing
,
unicode
,
convert_from_extras
],
'sop_stevilka'
:
[
ignore_missing
,
unicode
,
convert_from_extras
],
'vrsta_pravne_podlage'
:
[
convert_from_extras
,
ignore_missing
],
'sop_stevilka'
:
[
convert_from_extras
,
ignore_missing
],
'pogoji_licence'
:
[
ignore_missing
,
unicode
,
convert_from_extras
],
'pogoji_licence'
:
[
convert_from_extras
,
ignore_missing
],
'theme-primary'
:
[
convert_from_extras
,
ignore_missing
],
'theme-secondary'
:
[
convert_from_extras
,
from_json
,
ignore_missing
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment