Пример #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())