author | Thierry Florac <tflorac@ulthar.net> |
Mon, 05 Mar 2012 13:53:38 +0100 | |
branch | ZTK-1.1 |
changeset 116 | 71368db3b970 |
parent 115 | 4ec3baf668c2 |
child 119 | e807bcb0fcac |
--- a/ztfy/utils/encoding.py Mon Mar 05 08:27:17 2012 +0100 +++ b/ztfy/utils/encoding.py Mon Mar 05 13:53:38 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)