Skip to content

Commit

Permalink
[noticket] Fix paster commands that fail due to
Browse files Browse the repository at this point in the history
    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 2371c05 2013-04-05.

    Affected: create-test-data, dataset delete, dataset purge.
  • Loading branch information
David Read committed Sep 12, 2013
1 parent af6c039 commit 34b3fb7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ckan/lib/cli.py
Expand Up @@ -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()
Expand All @@ -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()
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 34b3fb7

Please sign in to comment.