* src/Plugins.py: Do not pass parent to the reports.

svn: r3163
This commit is contained in:
Alex Roitman 2004-05-13 18:24:38 +00:00
parent 929307150c
commit 6603fe8932
2 changed files with 18 additions and 8 deletions

View File

@ -1,5 +1,6 @@
2004-05-13 Alex Roitman <shura@alex.neuro.umn.edu>
* src/RelLib.py (probably_alive): Typos.
* src/Plugins.py: Do not pass parent to the reports.
2004-05-12 Alex Roitman <shura@alex.neuro.umn.edu>
* src/plugins/ChangeTypes.py: Remove Utils.modified() call.

View File

@ -128,6 +128,7 @@ class PluginDialog:
self.db = db
self.active = active
self.update = None
self.noparent = 0
self.imap = {}
self.msg = msg
@ -207,9 +208,15 @@ class PluginDialog:
if self.run_tool:
if self.update:
if self.noparent:
self.run_tool(self.db,self.active,self.update)
else:
self.run_tool(self.db,self.active,self.update,self.parent)
else:
self.run_tool(self.db,self.active,None,self.parent)
if self.noparent:
self.run_tool(self.db,self.active)
else:
self.run_tool(self.db,self.active,self.parent)
def on_node_selected(self,obj):
"""Updates the informational display on the right hand side of
@ -297,6 +304,7 @@ class ReportPlugins(PluginDialog):
PluginDialog.__init__(self,parent,db,active,_reports,_("Report Selection"),
_("Select a report from those available on the left."),
_("_Generate"), _("Generate selected report"))
self.noparent = 1
#-------------------------------------------------------------------------
#
@ -316,6 +324,7 @@ class ToolPlugins(PluginDialog):
_("Select a tool from those available on the left."),
_("_Run"), _("Run selected tool"))
self.update = update
self.noparent = 0
#-------------------------------------------------------------------------
#