From 2234f82e1a529573d4dccf00097e96a5a9080d07 Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Thu, 3 Sep 2009 04:12:11 +0000 Subject: [PATCH] Remove the "check" and "summary" CLI actions. Those plugins can be run using "-a tool -p name=check" and "-a report -p name=summary" respectively. svn: r13153 --- src/cli/arghandler.py | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/cli/arghandler.py b/src/cli/arghandler.py index f5be78ef5..fc3174633 100644 --- a/src/cli/arghandler.py +++ b/src/cli/arghandler.py @@ -441,22 +441,7 @@ class ArgHandler(object): Command-line action routine. Try to perform specified action. """ pmgr = PluginManager.get_instance() - if action == 'check': - import Check - checker = Check.CheckIntegrity(self.dbstate, None, None) - checker.check_for_broken_family_links() - checker.cleanup_missing_photos(1) - checker.check_parent_relationships() - checker.cleanup_empty_families(0) - errs = checker.build_report(1) - if errs: - checker.report(1) - elif action == 'summary': - ## FIXME, this is broken, Summary no longer has build_report ! - import Summary - text = Summary.build_report(self.dbstate.db, None) - print text - elif action == "report": + if action == "report": try: options_str_dict = dict( [ tuple(chunk.split('=')) for chunk in options_str.split(',') ] )