def themes(cls): themes = [] for f in settings.THEME_FINDERS: finder = get_class(f) themes.extend(finder.get_themes()) #noinspection PyTypeChecker return dict([t.id, t] for t in themes)
def themes(cls): themes = [] for f in settings.THEME_FINDERS: finder = get_class(f) themes.extend(finder.get_themes()) return dict([t.id, t] for t in themes)
def themes_by_finder(cls): themes = {} for f in settings.THEME_FINDERS: finder = get_class(f) themes[f] = finder.get_themes() return themes