From 069f90a1bdce0bd57eb7409b78f5487b9c5e6694 Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Tue, 5 Jun 2012 17:05:29 +0200 Subject: [PATCH] Encoding column names to utf-8 was not possible :p see #255 --- lib/tables.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/tables.py b/lib/tables.py index c38ca7b17..2e19a11b3 100644 --- a/lib/tables.py +++ b/lib/tables.py @@ -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