def AvailableThemesVocabulary(context): items = [] for theme in AVIARY_THEMES: items.append(SimpleTerm(value=theme, title=_(theme))) return SimpleVocabulary(items)
def AvailableToolsVocabulary(context): items = [] for tool in AVIARY_TOOLS: items.append(SimpleTerm(value=tool, title=_(tool))) return SimpleVocabulary(items)