From ef7b3e94c3bc09d60086bbc4ae8b320ad8c61b94 Mon Sep 17 00:00:00 2001 From: Dominik Moritz Date: Sun, 25 Aug 2013 11:13:21 +0200 Subject: [PATCH] [#1183] Remove datapusher_enabled action and move before_show to datstore. Instead of using the action or the template helper, check whether the plugin is enabled. Moved the action so that changing the url works even if the datapusher is disabled. --- ckan/templates/package/resource_read.html | 4 +++- .../templates/snippets/datapusher_status.html | 14 +++++------ ckanext/datapusher/helpers.py | 4 ---- ckanext/datapusher/logic/action.py | 10 -------- ckanext/datapusher/plugin.py | 24 +++++++------------ ckanext/datastore/logic/action.py | 17 +++++++++---- ckanext/datastore/plugin.py | 13 +++++++++- 7 files changed, 41 insertions(+), 45 deletions(-) diff --git a/ckan/templates/package/resource_read.html b/ckan/templates/package/resource_read.html index d4433d4a4a8..f914780d179 100644 --- a/ckan/templates/package/resource_read.html +++ b/ckan/templates/package/resource_read.html @@ -27,7 +27,9 @@