author | Thierry Florac <tflorac@ulthar.net> |
Mon, 12 Mar 2012 01:00:00 +0100 | |
branch | ZTK-1.1 |
changeset 119 | e807bcb0fcac |
parent 116 | 71368db3b970 (diff) |
parent 118 | 704ea6488874 (current diff) |
child 120 | 4cfa237c6b2a |
--- a/ztfy/utils/encoding.py Mon Mar 12 00:54:52 2012 +0100 +++ b/ztfy/utils/encoding.py Mon Mar 12 01:00:00 2012 +0100 @@ -136,7 +136,7 @@ def __init__(self, terms, *interfaces): request = queryRequest() - terms = [SimpleTerm(v, t, translate(t, context=request)) for v, t in ENCODINGS.iteritems()] + terms = [SimpleTerm(unicode(v), title=translate(t, context=request)) for v, t in ENCODINGS.iteritems()] terms.sort(key=lambda x: x.title) super(EncodingsVocabulary, self).__init__(terms, *interfaces)