From 20ed8b65b952819bea6a1cd786dcb1adacd53a72 Mon Sep 17 00:00:00 2001 From: Adrian Moennich Date: Mon, 17 Nov 2014 17:33:25 +0100 Subject: [PATCH] Remove create_agent CLI --- livesync/indico_livesync/cli.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/livesync/indico_livesync/cli.py b/livesync/indico_livesync/cli.py index 55a7d9d..d9b2587 100644 --- a/livesync/indico_livesync/cli.py +++ b/livesync/indico_livesync/cli.py @@ -101,25 +101,6 @@ def initial_export(agent_id, force=False): db.session.commit() -@cli_manager.command -def create_agent(agent_type, name=None): - """Creates a new agent""" - update_session_options(db) - try: - agent_class = current_plugin.agent_classes[agent_type] - except KeyError: - print 'No such agent type' - return - # TODO: Prompt for agent type specific settings - agent = LiveSyncAgent(backend_name=agent_type, name=name or agent_class.title) - db.session.add(agent) - db.session.commit() - print agent - - -# TODO: delete_agent, update_agent - - @cli_manager.command def run(agent_id=None): """Runs the livesync agent"""