2006-12-20 Alex Roitman <shura@gramps-project.org>

* src/PluginUtils/_Plugins.py (PluginDialog.__init__): Connect to
	signal in the parent class.



svn: r7831
This commit is contained in:
Alex Roitman 2006-12-21 04:42:37 +00:00
parent f2a4002d5e
commit ae213a633b
2 changed files with 11 additions and 5 deletions

View File

@ -1,3 +1,7 @@
2006-12-20 Alex Roitman <shura@gramps-project.org>
* src/PluginUtils/_Plugins.py (PluginDialog.__init__): Connect to
signal in the parent class.
2006-12-20 Don Allingham <don@gramps-project.org>
* src/DataViews/_PersonView.py: use a container for bookmarks to prevent
lost of data (bug #777)

View File

@ -137,8 +137,13 @@ class PluginDialog(ManagedWindow.ManagedWindow):
self.item = None
self.build_plugin_tree(item_list,categories)
uistate.connect('plugins-reloaded',self.rebuild)
self.show()
def rebuild(self,tool_list,report_list):
# This method needs to be overridden in the subclass
assert False, "This method needs to be overridden in the subclass."
def build_menu_names(self,obj):
return (self.msg,None)
@ -266,9 +271,8 @@ class ReportPlugins(PluginDialog):
_("Select a report from those available on the left."),
_("_Generate"), _("Generate selected report"),
REPORTS)
uistate.connect('plugins-reloaded',self.rebuild_reports)
def rebuild_reports(self,tool_list,report_list):
def rebuild(self,tool_list,report_list):
self.build_plugin_tree(report_list,standalone_categories)
#-------------------------------------------------------------------------
@ -300,10 +304,8 @@ class ToolPlugins(PluginDialog):
_("_Run"),
_("Run selected tool"),
TOOLS)
uistate.connect('plugins-reloaded',self.rebuild_tools)
def rebuild_tools(self,tool_list,report_list):
def rebuild(self,tool_list,report_list):
self.build_plugin_tree(tool_list,_Tool.tool_categories)
#-------------------------------------------------------------------------