From 69180989ef499edd4730fcb0078cc8e55528fb84 Mon Sep 17 00:00:00 2001 From: Kees Bakker Date: Sun, 18 Mar 2007 19:20:09 +0000 Subject: [PATCH] Do not run update() if in CLI mode. svn: r8303 --- src/plugins/Verify.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/plugins/Verify.py b/src/plugins/Verify.py index 90cfb018c..444a500c4 100644 --- a/src/plugins/Verify.py +++ b/src/plugins/Verify.py @@ -226,6 +226,8 @@ class Verify(Tool.Tool, ManagedWindow, UpdateCallback): print "W: %s, %s: %s, %s" % (msg,the_type,gramps_id,name) elif severity == Rule.ERROR: print "E: %s, %s: %s, %s" % (msg,the_type,gramps_id,name) + else: + print "S: %s, %s: %s, %s" % (msg,the_type,gramps_id,name) def init_gui(self): # Draw dialog and make it handle everything @@ -388,7 +390,8 @@ class Verify(Tool.Tool, ManagedWindow, UpdateCallback): self.add_results(rule.report_itself()) clear_cache() - self.update() + if not cli: + self.update() # Family-based rules for family_handle in self.db.get_family_handles(): @@ -417,7 +420,8 @@ class Verify(Tool.Tool, ManagedWindow, UpdateCallback): self.add_results(rule.report_itself()) clear_cache() - self.update() + if not cli: + self.update() #------------------------------------------------------------------------- #