From 2d626f508b661a808044b81c7e5cf03ef157b32d Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Sat, 29 Jan 2005 22:05:21 +0000 Subject: [PATCH] * src/plugins/GraphViz.py (GraphVizDialog.__init__): Use proper response ID; (GraphVizGraphics.__init__): set up self.doc; (EmptyDoc.init): Add empty method. svn: r3990 --- gramps2/ChangeLog | 5 +++++ gramps2/src/plugins/GraphViz.py | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index fd55c6d9c..6d32e1ee2 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,8 @@ +2005-01-29 Alex Roitman + * src/plugins/GraphViz.py (GraphVizDialog.__init__): + Use proper response ID; (GraphVizGraphics.__init__): set up self.doc; + (EmptyDoc.init): Add empty method. + 2005-01-29 Eero Tamminen * src/plugins/StatisticsChart.py: - Added support for Don's Pie charts + color styles for it diff --git a/gramps2/src/plugins/GraphViz.py b/gramps2/src/plugins/GraphViz.py index a12ec61bb..07727354a 100644 --- a/gramps2/src/plugins/GraphViz.py +++ b/gramps2/src/plugins/GraphViz.py @@ -761,7 +761,7 @@ class GraphVizDialog(Report.ReportDialog): name,translated_name) response = self.window.run() - if response == True: + if response == gtk.RESPONSE_OK: try: self.make_report() except (IOError,OSError),msg: @@ -886,6 +886,9 @@ class EmptyDoc: def __init__(self,styles,type,template,orientation,source=None): pass + def init(self): + pass + #------------------------------------------------------------------------ # # @@ -915,6 +918,7 @@ class GraphVizGraphics(Report.Report): self.database = database self.start_person = person self.options_class = options_class + self.doc = options_class.get_document() self.user_output = options_class.get_output() self.junk_output = os.path.expanduser("~/.gramps/junk")