diff --git a/ChangeLog b/ChangeLog index 5ca20d935..0b91de715 100644 --- a/ChangeLog +++ b/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/src/plugins/CmdRef.py b/src/plugins/CmdRef.py index 1bba732d1..e6e3e9409 100644 --- a/src/plugins/CmdRef.py +++ b/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