From 4e4e7223784dd09ba04515d21d2d1bdbcdc95edf Mon Sep 17 00:00:00 2001 From: rickelt Date: Wed, 22 May 2024 12:11:55 +0200 Subject: [PATCH] Fix ImportError logic Module in plugin.py --- sddi-odp/CHANGELOG.md | 4 ++++ .../ckanext-ogdmunich/ckanext/ogdmunich/plugin.py | 9 +-------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/sddi-odp/CHANGELOG.md b/sddi-odp/CHANGELOG.md index a125f1e..f96d195 100644 --- a/sddi-odp/CHANGELOG.md +++ b/sddi-odp/CHANGELOG.md @@ -1,6 +1,10 @@ CHANGELOG ========= +22.05.2024: + +* FIX: Import logic Funktionen aus plugin.py entfernt + 21.05.2024 (v1.1.0): * ENH: API-Link zu Datensatz (in datasetview) diff --git a/sddi-odp/ckan-extensions/ckanext-ogdmunich/ckanext/ogdmunich/plugin.py b/sddi-odp/ckan-extensions/ckanext-ogdmunich/ckanext/ogdmunich/plugin.py index cbf96d1..9d8963e 100644 --- a/sddi-odp/ckan-extensions/ckanext-ogdmunich/ckanext/ogdmunich/plugin.py +++ b/sddi-odp/ckan-extensions/ckanext-ogdmunich/ckanext/ogdmunich/plugin.py @@ -10,7 +10,7 @@ from ckan.logic import NotFound, get_action from ckan import model from ckan.model import Session -from ckanext.ogdmunich import dcat_ap, logic +from ckanext.ogdmunich import dcat_ap import json import os @@ -79,7 +79,6 @@ class OGDMunichThemePlugin(plugins.SingletonPlugin): plugins.implements(ISpatialHarvester, inherit=True) plugins.implements(plugins.IBlueprint) plugins.implements(plugins.IValidators) - # plugins.implements(plugins.IActions, inherit=True) def get_blueprint(self): return dcat_ap.get_blueprints() @@ -87,12 +86,6 @@ def get_blueprint(self): def get_validators(self): return {"ogdmunich_is_musterdatensatz": is_musterdatensatz} - # # IActions - # def get_actions(self): - # return { - # "ogdmunich_autosuggest": logic.ogdmunich_autosuggest, - # } - def get_package_dict(self, context, data_dict): # Check the reference below to see all that's included on data_dict package_dict = data_dict['package_dict']