From f9b0294b239cfe229f00e9850d733d2b28878e9f Mon Sep 17 00:00:00 2001 From: tino097 Date: Mon, 18 Mar 2024 18:51:05 +0100 Subject: [PATCH] Testing the extension --- ckanext/datapusher_plus/plugin.py | 3 --- setup.py | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/ckanext/datapusher_plus/plugin.py b/ckanext/datapusher_plus/plugin.py index 69d7352..bf32373 100644 --- a/ckanext/datapusher_plus/plugin.py +++ b/ckanext/datapusher_plus/plugin.py @@ -44,9 +44,7 @@ def update_config(self, config: CKANConfig): p.toolkit.add_public_directory(config, "public") p.toolkit.add_resource("assets", "datapusher_plus") - # IResourceUrlChange - def notify(self, resource: model.Resource): context = { "model": model, @@ -143,7 +141,6 @@ def get_helpers(self) -> dict[str, Callable[..., Any]]: def get_blueprint(self): return views.get_blueprints() - # IClick def get_commands(self): return [cli.init_db] \ No newline at end of file diff --git a/setup.py b/setup.py index 00970a2..3ee7092 100644 --- a/setup.py +++ b/setup.py @@ -82,7 +82,7 @@ # pip to create the appropriate form of executable for the target platform. entry_points=''' [ckan.plugins] - datapusher=ckanext.datapusher_plus.plugin:DatapusherPlusPlugin + datapusher_plus=ckanext.datapusher_plus.plugin:DatapusherPlusPlugin [babel.extractors] ckan = ckan.lib.extract:extract_ckan