Encoding column names to utf-8 was not possible :p

see #255
This commit is contained in:
Antoine Nguyen
2012-06-05 17:05:29 +02:00
parent 86f6130490
commit 069f90a1bd
+4 -1
View File
@@ -25,13 +25,16 @@ class Column:
for k, v in kwargs.iteritems():
setattr(self, k, v)
def __str__(self):
def __unicode__(self):
try:
label = getattr(self, "label")
except KeyError:
label = getattr(self, "name")
return _(label)
def __str__(self):
return self.__unicode__()
class SelectionColumn(Column):
"""Specific column: selection