--- 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") +