def get_all_plugins(): global W, PLUGINS, PLUGNFO, PLUGNFOk ret = [] for p in PLUGINS: uri = p.get_uri().as_uri() if uri in BLACKLIST: continue if MODGUI_SHOW_MODE == 2 and uri not in CLOUD_PLUGINS: continue if MODGUI_SHOW_MODE == 3 and uri not in WHITELIST: continue # check if it's already cached if uri in PLUGNFOk and PLUGNFO[uri]: if PLUGNFO[uri]['gui'] or MODGUI_SHOW_MODE != 1: ret.append(PLUGNFO[uri]) continue # skip plugins without modgui if so requested if MODGUI_SHOW_MODE == 1 and not plugin_has_modgui(W, p): continue # get new info PLUGNFO[uri] = get_plugin_info2(W, p) ret.append(PLUGNFO[uri]) return ret
def get_all_plugins(): global W, PLUGINS, PLUGNFO ret = [] keys = PLUGNFO.keys() for p in PLUGINS: uri = p.get_uri().as_uri() # check if it's already cached if uri in keys and PLUGNFO[uri]: if PLUGNFO[uri]['gui'] or not MODGUIS_ONLY: ret.append(PLUGNFO[uri]) continue # skip plugins without modgui if so requested if MODGUIS_ONLY and not plugin_has_modgui(W, p): continue # get new info PLUGNFO[uri] = get_plugin_info2(W, p) ret.append(PLUGNFO[uri]) return ret