예제 #1
0
def linkedSectionTermsVocabulary(context):
    section = interfaces.ISection(context)
    linked = section.linked_sections
    terms = [ITerm(s) for s in linked]
    return vocabulary_titled(terms)
예제 #2
0
def contactStatesVocabulary(context):
    app_states = getAppContactStates()
    return vocabulary_titled(app_states.states.values())
예제 #3
0
def linkedSectionTermsVocabulary(context):
    section = interfaces.ISection(context)
    linked = section.linked_sections
    terms = [ITerm(s) for s in linked]
    return vocabulary_titled(terms)
예제 #4
0
def contactStatesVocabulary(context):
    app_states = getAppContactStates()
    return vocabulary_titled(app_states.states.values())