equal
deleted
inserted
replaced
134 |
134 |
135 classProvides(IVocabularyFactory) |
135 classProvides(IVocabularyFactory) |
136 |
136 |
137 def __init__(self, terms, *interfaces): |
137 def __init__(self, terms, *interfaces): |
138 request = queryRequest() |
138 request = queryRequest() |
139 terms = [SimpleTerm(v, t, translate(t, context=request)) for v, t in ENCODINGS.iteritems()] |
139 terms = [SimpleTerm(unicode(v), title=translate(t, context=request)) for v, t in ENCODINGS.iteritems()] |
140 terms.sort(key=lambda x: x.title) |
140 terms.sort(key=lambda x: x.title) |
141 super(EncodingsVocabulary, self).__init__(terms, *interfaces) |
141 super(EncodingsVocabulary, self).__init__(terms, *interfaces) |
142 |
142 |
143 |
143 |
144 class IEncodingField(IChoice): |
144 class IEncodingField(IChoice): |