From: John Glover Date: Tue, 21 Feb 2012 12:06:47 +0000 Subject: [commands] add 'not yet implemented' warning for clean command X-Git-Url: http://maxious.lambdacomplex.org/git/?p=ckanext-datagovau.git&a=commitdiff&h=8b03a1dd0a4a72b3b43e07ef54c40e73dfd5566e --- [commands] add 'not yet implemented' warning for clean command --- --- a/ckanext/example/commands.py +++ b/ckanext/example/commands.py @@ -36,6 +36,8 @@ if cmd == 'create-example-vocabs': self.create_example_vocabs() + if cmd == 'clean': + self.clean() else: log.error('Command "%s" not recognized' % (cmd,)) @@ -76,3 +78,6 @@ data = {'name': 'Steve Lewis', 'vocabulary_id': vocab['id']} get_action('tag_create')(context, data) + def clean(self): + log.error("Clean command not yet implemented") +