From 34b3fb7d882afbf024c2929dbba80e5385f2d7f6 Mon Sep 17 00:00:00 2001 From: David Read Date: Thu, 12 Sep 2013 15:05:46 +0000 Subject: [PATCH] [noticket] Fix paster commands that fail due to The synchronous_search plugin is enabled automatically in ckan/plugins/core.py so a few paster commands failed trying to load it again. Looks like this was broken since 2371c05c 2013-04-05. Affected: create-test-data, dataset delete, dataset purge. --- ckan/lib/cli.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/ckan/lib/cli.py b/ckan/lib/cli.py index 0acae3550bb..a7e89d27991 100644 --- a/ckan/lib/cli.py +++ b/ckan/lib/cli.py @@ -844,7 +844,6 @@ def delete(self, dataset_ref): dataset = self._get_dataset(dataset_ref) old_state = dataset.state - plugins.load('synchronous_search') rev = model.repo.new_revision() dataset.delete() model.repo.commit_and_remove() @@ -857,7 +856,6 @@ def purge(self, dataset_ref): dataset = self._get_dataset(dataset_ref) name = dataset.name - plugins.load('synchronous_search') rev = model.repo.new_revision() dataset.purge() model.repo.commit_and_remove() @@ -1284,7 +1282,6 @@ def command(self): self._load_config() self._setup_app() from ckan import plugins - plugins.load('synchronous_search') # so packages get indexed from create_test_data import CreateTestData if self.args: