* src/plugins/CmdRef.py: Fix tool.

svn: r6469
This commit is contained in:
Alex Roitman 2006-04-27 19:35:43 +00:00
parent 0f6e4ff82a
commit 7bd6984dcc
2 changed files with 5 additions and 3 deletions

View File

@ -1,4 +1,5 @@
2006-04-27 Alex Roitman <shura@gramps-project.org> 2006-04-27 Alex Roitman <shura@gramps-project.org>
* src/plugins/CmdRef.py: Fix tool.
* src/PluginUtils/_PluginStatus.py: Fix wm. * src/PluginUtils/_PluginStatus.py: Fix wm.
* src/PluginUtils/_Plugins.py: Fix Reload tool. The re-building of * src/PluginUtils/_Plugins.py: Fix Reload tool. The re-building of
the menus still needs to be fixed. the menus still needs to be fixed.

View File

@ -58,8 +58,9 @@ _tags = [
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
class CmdRef(Tool.Tool): class CmdRef(Tool.Tool):
def __init__(self,db,person,options_class,name,callback=None,parent=None): def __init__(self,dbstate, uistate, options_class, name, callback=None):
Tool.Tool.__init__(self,db,person,options_class,name) Tool.Tool.__init__(self,dbstate,options_class,name)
db = dbstate.db
# retrieve options # retrieve options
include = self.options.handler.options_dict['include'] include = self.options.handler.options_dict['include']
@ -70,7 +71,7 @@ class CmdRef(Tool.Tool):
else: else:
level = 0 level = 0
cli = int(parent == None) cli = int(uistate == None)
f = tempfile.NamedTemporaryFile() f = tempfile.NamedTemporaryFile()
fname = f.name fname = f.name