4772: Performance improvement for context menu

svn: r17213
This commit is contained in:
Nick Hall
2011-04-22 23:20:15 +00:00
parent 4856cf9dbb
commit d3cd2e6acf
2 changed files with 8 additions and 8 deletions
+5
View File
@@ -95,6 +95,11 @@ def GET_AVAILABLE_GRAMPLETS(name):
}
return None
def GET_GRAMPLET_LIST(nav_type, skip):
return [(gplug.name, gplug.id) for gplug in PLUGMAN.get_reg_gramplets()
if gplug.navtypes == [] or nav_type in gplug.navtypes
and gplug.name not in skip]
def parse_tag_attr(text):
"""
Function used to parse markup.