Fixed error report in mailing list by Peter 2011-03-30

svn: r16991
This commit is contained in:
Doug Blank 2011-03-30 17:40:57 +00:00
parent 88145a69cc
commit e7f04aa2e1

View File

@ -151,6 +151,7 @@ def make_requested_gramplet(gui_class, pane, opts, dbstate, uistate):
"""
Make a GUI gramplet given its name.
"""
if name in opts:
name = opts["name"]
if name in AVAILABLE_GRAMPLETS():
gui = gui_class(pane, dbstate, uistate, **opts)
@ -162,6 +163,8 @@ def make_requested_gramplet(gui_class, pane, opts, dbstate, uistate):
else:
print "Error loading gramplet '%s': skipping content" % name
return gui
else:
print "Error loading gramplet '%s': unknown name" % name
return None
def logical_true(value):