From 1897c629623c24ea6643e87ced0d5f26596d3916 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Tue, 27 Sep 2005 00:48:10 +0000 Subject: [PATCH] Mon Sep 26 17:48:10 PDT 2005 svn: r5240 --- gramps2/src/plugins/Checkpoint.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gramps2/src/plugins/Checkpoint.py b/gramps2/src/plugins/Checkpoint.py index 8dce097de..9e4ef4a67 100644 --- a/gramps2/src/plugins/Checkpoint.py +++ b/gramps2/src/plugins/Checkpoint.py @@ -259,8 +259,11 @@ class Checkpoint(Tool.Tool): Passed the generated XML file to the specified command. """ proc = popen2.Popen3(cmd, True) - xmlwrite = WriteXML.XmlWriter(self.db,self.callback,False,False) - xmlwrite.write_handle(proc.tochild) + if checkin: + xmlwrite = WriteXML.XmlWriter(self.db,self.callback,False,False) + xmlwrite.write_handle(proc.tochild) + else: + pass proc.tochild.close() status = proc.wait() message = "\n".join(proc.childerr.readlines())