# HG changeset patch # User Thierry Florac # Date 1331510400 -3600 # Node ID e807bcb0fcac31ebbca7b0b7d07370a8591c7ef9 # Parent 71368db3b970bf3aeda0ce38460532d8c0e03658# Parent 704ea6488874d172c92cb6ad316f667c714ac271 Merge with 704ea6488874d172c92cb6ad316f667c714ac271 diff -r 704ea6488874 -r e807bcb0fcac ztfy/utils/encoding.py --- 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)