Ejemplo n.º 1
0
 def country_vocabulary(self):
     return country_vocabulary()
Ejemplo n.º 2
0
def CountryVocabulary(context):
    """VocabularyFactory for countries from ISO3166 source.
    """
    return SimpleVocabulary([SimpleTerm(value=k, title=v)
                             for k, v in country_vocabulary()])
Ejemplo n.º 3
0
def CountryVocabulary(context):
    """VocabularyFactory for countries from ISO3166 source.
    """
    return SimpleVocabulary(
        [SimpleTerm(value=k, title=v) for k, v in country_vocabulary()])