From 543a954125186a20e2f2d0e2e4722d14fad1b8d2 Mon Sep 17 00:00:00 2001 From: Alessio Fabrizio Date: Fri, 29 Nov 2024 15:22:36 +0100 Subject: [PATCH] style: :fire: removed comments removed comments --- ckanext-d4science_theme/ckanext/d4science_theme/plugin.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ckanext-d4science_theme/ckanext/d4science_theme/plugin.py b/ckanext-d4science_theme/ckanext/d4science_theme/plugin.py index 0a50fa7..2076b60 100644 --- a/ckanext-d4science_theme/ckanext/d4science_theme/plugin.py +++ b/ckanext-d4science_theme/ckanext/d4science_theme/plugin.py @@ -224,7 +224,6 @@ class D4Science_ThemePlugin(plugins.SingletonPlugin, toolkit.DefaultDatasetForm) #log.debug("schema after create prima del validator %s", schema) schema = remove_check_replicated_custom_key(schema) #log.debug("create_package1 (remove __before): %s", schema) - #schema.update(self._modify_package_schema(schema)) schema.update(self._modify_package_schema()) #d.package_dict_save = _package_dict_save #log.debug("create_package2 (remove extras validator): %s", schema) @@ -236,7 +235,6 @@ class D4Science_ThemePlugin(plugins.SingletonPlugin, toolkit.DefaultDatasetForm) schema = super(D4Science_ThemePlugin, self).update_package_schema() schema = remove_check_replicated_custom_key(schema) #log.debug("update_package1 (remove __before) %s", schema) - #schema.update(self._modify_package_schema(schema)) schema.update(self._modify_package_schema()) #log.debug("update_package2 (remove extras validator) %s", schema) return schema @@ -248,7 +246,6 @@ class D4Science_ThemePlugin(plugins.SingletonPlugin, toolkit.DefaultDatasetForm) #log.debug("show_package1 %s", schema) schema = remove_check_replicated_custom_key(schema) #log.debug("show_package1.5 no before %s", schema) - #schema.update(self._modify_package_schema(schema)) schema.update({ 'extras': { 'id': [toolkit.get_validator('ignore')], # Ignora 'id' come prima @@ -256,7 +253,6 @@ class D4Science_ThemePlugin(plugins.SingletonPlugin, toolkit.DefaultDatasetForm) 'value': [toolkit.get_validator('not_missing')] } }) - #log.debug("show_package2 %s", schema) return schema #IDatasetForm