Fix bug listing gramplets already in gramplet bar

svn: r23041
This commit is contained in:
Nick Hall 2013-09-05 22:47:02 +00:00
parent 109fabf5d4
commit 66fc6893ea

View File

@ -112,9 +112,9 @@ def GET_AVAILABLE_GRAMPLETS(name):
return None return None
def GET_GRAMPLET_LIST(nav_type, skip): def GET_GRAMPLET_LIST(nav_type, skip):
return [(gplug.gramplet_title, gplug.id) return [(gplug.gramplet_title, gplug.id)
for gplug in PLUGMAN.get_reg_gramplets() for gplug in PLUGMAN.get_reg_gramplets()
if gplug.navtypes == [] or nav_type in gplug.navtypes if (gplug.navtypes == [] or nav_type in gplug.navtypes)
and gplug.name not in skip] and gplug.name not in skip]
def parse_tag_attr(text): def parse_tag_attr(text):