Commit 2ebdcd48 authored by Willem ter Berg's avatar Willem ter Berg

enabled the Data.Overheid schema for the Data.Overheid branch.

parent 18cf43aa
......@@ -51,6 +51,7 @@ class DONLPlugin(plugins.SingletonPlugin, tk.DefaultDatasetForm):
"""
schema = super(DONLPlugin, self).create_package_schema()
schema = schema_factory.get_schema('DCAT-AP-DONL').create_schema(schema)
schema = schema_factory.get_schema('Data.Overheid').create_schema(schema)
return schema
......@@ -62,6 +63,7 @@ class DONLPlugin(plugins.SingletonPlugin, tk.DefaultDatasetForm):
"""
schema = super(DONLPlugin, self).update_package_schema()
schema = schema_factory.get_schema('DCAT-AP-DONL').update_schema(schema)
schema = schema_factory.get_schema('Data.Overheid').update_schema(schema)
return schema
......@@ -73,5 +75,6 @@ class DONLPlugin(plugins.SingletonPlugin, tk.DefaultDatasetForm):
"""
schema = super(DONLPlugin, self).show_package_schema()
schema = schema_factory.get_schema('DCAT-AP-DONL').show_schema(schema)
schema = schema_factory.get_schema('Data.Overheid').show_schema(schema)
return schema
......@@ -5,6 +5,7 @@ Factory module that exposes modules which modify the CKAN schema.
"""
import ckanext.dcatdonl.schema.dcat_ap_donl_schema as dcat_ap_donl_schema
import ckanext.dcatdonl.schema.data_overheid_schema as data_overheid_schema
class SchemaException(Exception):
......@@ -12,7 +13,8 @@ class SchemaException(Exception):
_SCHEMAS = {
'DCAT-AP-DONL': dcat_ap_donl_schema
'DCAT-AP-DONL': dcat_ap_donl_schema,
'Data.Overheid': data_overheid_schema
}
......
......@@ -30,6 +30,6 @@ def valid_legal_foundation(key, data, errors, context):
if not errors[absentee]:
errors[absentee] = []
errors[absentee].append(absentee[0] + ' must be provided when providing any of the legal_foundation_% properties')
errors[absentee].append(absentee[0] + ' must be provided when providing any of the legal_foundation_* properties')
return key, data, errors, context
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment