def linkedSectionTermsVocabulary(context): section = interfaces.ISection(context) linked = section.linked_sections terms = [ITerm(s) for s in linked] return vocabulary_titled(terms)
def contactStatesVocabulary(context): app_states = getAppContactStates() return vocabulary_titled(app_states.states.values())