* src/plugins/GraphViz.py (GraphVizDialog.__init__):

Use proper response ID;  (GraphVizGraphics.__init__): set up self.doc;
(EmptyDoc.init): Add empty method.


svn: r3990
This commit is contained in:
Alex Roitman
2005-01-29 22:05:21 +00:00
parent 3a8dfc04bf
commit 2d626f508b
2 changed files with 10 additions and 1 deletions

View File

@@ -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")