Skip to content

Commit

Permalink
Merge pull request #494 from vrk-kpa/fix_ckan_admin_config
Browse files Browse the repository at this point in the history
Fix server error in ckan admin config
  • Loading branch information
Zharktas authored Nov 26, 2024
2 parents 4b0ea0f + cba52ce commit f795fae
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions ckanext/ckanext-apicatalog/ckanext/apicatalog/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,25 +688,26 @@ def update_config(self, config_):

def update_config_schema(self, schema):
ignore_missing = toolkit.get_validator('ignore_missing')
unicode_safe = toolkit.get_validator('unicode_safe')

schema.update({
'ckanext.apicatalog.service_alert.fi.message': [ignore_missing, six.text_type],
'ckanext.apicatalog.service_alert.sv.message': [ignore_missing, six.text_type],
'ckanext.apicatalog.service_alert.en_GB.message': [ignore_missing, six.text_type],
'ckanext.apicatalog.info_message.fi': [ignore_missing, six.text_type],
'ckanext.apicatalog.info_message.sv': [ignore_missing, six.text_type],
'ckanext.apicatalog.info_message.en_GB': [ignore_missing, six.text_type],
'ckanext.apicatalog.left_column.fi': [ignore_missing, six.text_type],
'ckanext.apicatalog.left_column.sv': [ignore_missing, six.text_type],
'ckanext.apicatalog.left_column.en_GB': [ignore_missing, six.text_type],
'ckanext.apicatalog.right_column.fi': [ignore_missing, six.text_type],
'ckanext.apicatalog.right_column.sv': [ignore_missing, six.text_type],
'ckanext.apicatalog.right_column.en_GB': [ignore_missing, six.text_type],
'ckanext.apicatalog.readonly_users': [ignore_missing, six.text_type],
'ckanext.apicatalog.site_intro_text.sv': [ignore_missing, six.text_type],
'ckanext.apicatalog.site_intro_text.en_GB': [ignore_missing, six.text_type],
'ckanext.apicatalog.site_description.sv': [ignore_missing, six.text_type],
'ckanext.apicatalog.site_description.en_GB': [ignore_missing, six.text_type]
'ckanext.apicatalog.service_alert.fi.message': [ignore_missing, unicode_safe],
'ckanext.apicatalog.service_alert.sv.message': [ignore_missing, unicode_safe],
'ckanext.apicatalog.service_alert.en_GB.message': [ignore_missing, unicode_safe],
'ckanext.apicatalog.info_message.fi': [ignore_missing, unicode_safe],
'ckanext.apicatalog.info_message.sv': [ignore_missing, unicode_safe],
'ckanext.apicatalog.info_message.en_GB': [ignore_missing, unicode_safe],
'ckanext.apicatalog.left_column.fi': [ignore_missing, unicode_safe],
'ckanext.apicatalog.left_column.sv': [ignore_missing, unicode_safe],
'ckanext.apicatalog.left_column.en_GB': [ignore_missing, unicode_safe],
'ckanext.apicatalog.right_column.fi': [ignore_missing, unicode_safe],
'ckanext.apicatalog.right_column.sv': [ignore_missing, unicode_safe],
'ckanext.apicatalog.right_column.en_GB': [ignore_missing, unicode_safe],
'ckanext.apicatalog.readonly_users': [ignore_missing, unicode_safe],
'ckanext.apicatalog.site_intro_text.sv': [ignore_missing, unicode_safe],
'ckanext.apicatalog.site_intro_text.en_GB': [ignore_missing, unicode_safe],
'ckanext.apicatalog.site_description.sv': [ignore_missing, unicode_safe],
'ckanext.apicatalog.site_description.en_GB': [ignore_missing, unicode_safe]
})

return schema
Expand Down

0 comments on commit f795fae

Please sign in to comment.