From 7bd6984dcc9a604981a4cde2d77a38b2eae45b42 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Thu, 27 Apr 2006 19:35:43 +0000 Subject: [PATCH] * src/plugins/CmdRef.py: Fix tool. svn: r6469 --- gramps2/ChangeLog | 1 + gramps2/src/plugins/CmdRef.py | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 5ca20d935..0b91de715 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,4 +1,5 @@ 2006-04-27 Alex Roitman + * src/plugins/CmdRef.py: Fix tool. * src/PluginUtils/_PluginStatus.py: Fix wm. * src/PluginUtils/_Plugins.py: Fix Reload tool. The re-building of the menus still needs to be fixed. diff --git a/gramps2/src/plugins/CmdRef.py b/gramps2/src/plugins/CmdRef.py index 1bba732d1..e6e3e9409 100644 --- a/gramps2/src/plugins/CmdRef.py +++ b/gramps2/src/plugins/CmdRef.py @@ -58,8 +58,9 @@ _tags = [ # #------------------------------------------------------------------------- class CmdRef(Tool.Tool): - def __init__(self,db,person,options_class,name,callback=None,parent=None): - Tool.Tool.__init__(self,db,person,options_class,name) + def __init__(self,dbstate, uistate, options_class, name, callback=None): + Tool.Tool.__init__(self,dbstate,options_class,name) + db = dbstate.db # retrieve options include = self.options.handler.options_dict['include'] @@ -70,7 +71,7 @@ class CmdRef(Tool.Tool): else: level = 0 - cli = int(parent == None) + cli = int(uistate == None) f = tempfile.NamedTemporaryFile() fname = f.name