Exemple #1
0
def linkedSectionTermsVocabulary(context):
    section = interfaces.ISection(context)
    linked = section.linked_sections
    terms = [ITerm(s) for s in linked]
    return vocabulary_titled(terms)
Exemple #2
0
def contactStatesVocabulary(context):
    app_states = getAppContactStates()
    return vocabulary_titled(app_states.states.values())
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())