From cb3706619555c152e47d5d36d715c2a243c0c318 Mon Sep 17 00:00:00 2001 From: mutantsan Date: Wed, 30 Oct 2024 14:52:36 +0200 Subject: [PATCH] fix: update for ckan 2.11.0 --- ckanext/drupal_api/assets/.gitignore | 0 ckanext/drupal_api/assets/webassets.yml | 5 ----- ckanext/drupal_api/plugin.py | 1 - ckanext/drupal_api/templates/admin/base.html | 8 ++++++++ setup.py | 2 +- 5 files changed, 9 insertions(+), 7 deletions(-) delete mode 100644 ckanext/drupal_api/assets/.gitignore delete mode 100644 ckanext/drupal_api/assets/webassets.yml create mode 100644 ckanext/drupal_api/templates/admin/base.html diff --git a/ckanext/drupal_api/assets/.gitignore b/ckanext/drupal_api/assets/.gitignore deleted file mode 100644 index e69de29..0000000 diff --git a/ckanext/drupal_api/assets/webassets.yml b/ckanext/drupal_api/assets/webassets.yml deleted file mode 100644 index ee0105e..0000000 --- a/ckanext/drupal_api/assets/webassets.yml +++ /dev/null @@ -1,5 +0,0 @@ -# styles: -# filters: cssrewrite -# output: ckanext-drupal_api/%(version)s-styles.css -# contents: -# - css/styles.css diff --git a/ckanext/drupal_api/plugin.py b/ckanext/drupal_api/plugin.py index af86dea..1e1e72a 100644 --- a/ckanext/drupal_api/plugin.py +++ b/ckanext/drupal_api/plugin.py @@ -18,7 +18,6 @@ def get_helpers(self): def update_config(self, config_): tk.add_template_directory(config_, "templates") - tk.add_ckan_admin_tab(config_, "drupal_api.drupal_api_config", "Drupal API") # IBlueprint diff --git a/ckanext/drupal_api/templates/admin/base.html b/ckanext/drupal_api/templates/admin/base.html new file mode 100644 index 0000000..47665dc --- /dev/null +++ b/ckanext/drupal_api/templates/admin/base.html @@ -0,0 +1,8 @@ +{% ckan_extends %} + +{% block content_primary_nav %} + {{ super() }} + {{ h.build_nav_icon('drupal_api.drupal_api_config', _('Drupal API'), icon='gear') }} + + +{% endblock %} diff --git a/setup.py b/setup.py index 7be6a2a..22874e7 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ # Versions should comply with PEP440. For a discussion on single-sourcing # the version across setup.py and the project code, see # http://packaging.python.org/en/latest/tutorial.html#version - version='0.6.1', + version='0.6.2', description='''''', long_description=long_description,