Do not run update() if in CLI mode.

svn: r8303
This commit is contained in:
Kees Bakker 2007-03-18 19:20:09 +00:00
parent 63bf787fab
commit 69180989ef

View File

@ -226,6 +226,8 @@ class Verify(Tool.Tool, ManagedWindow, UpdateCallback):
print "W: %s, %s: %s, %s" % (msg,the_type,gramps_id,name) print "W: %s, %s: %s, %s" % (msg,the_type,gramps_id,name)
elif severity == Rule.ERROR: elif severity == Rule.ERROR:
print "E: %s, %s: %s, %s" % (msg,the_type,gramps_id,name) 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): def init_gui(self):
# Draw dialog and make it handle everything # Draw dialog and make it handle everything
@ -388,6 +390,7 @@ class Verify(Tool.Tool, ManagedWindow, UpdateCallback):
self.add_results(rule.report_itself()) self.add_results(rule.report_itself())
clear_cache() clear_cache()
if not cli:
self.update() self.update()
# Family-based rules # Family-based rules
@ -417,6 +420,7 @@ class Verify(Tool.Tool, ManagedWindow, UpdateCallback):
self.add_results(rule.report_itself()) self.add_results(rule.report_itself())
clear_cache() clear_cache()
if not cli:
self.update() self.update()
#------------------------------------------------------------------------- #-------------------------------------------------------------------------