From fc40d7c22a54bf11b05b1e3e0015bc90530d66e8 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Fri, 15 Apr 2011 15:20:16 +0200 Subject: Return unicode data from File.html(). --- db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db.py b/db.py index ada397c..9c49155 100644 --- a/db.py +++ b/db.py @@ -52,7 +52,7 @@ class File(Base): return os.path.join(settings.file_directory, self.hash + os.path.splitext(self.filename)[1]) def html(self): - return '{filename} 1 2 ({size}) on {date}'.format( + return u'{filename} 1 2 ({size}) on {date}'.format( hash = self.hash, filename = self.filename, ext = os.path.splitext(self.filename)[1], size = self.pretty_size(os.path.getsize(self.get_path())), date = self.date.strftime('%Y-%m-%d %H:%M:%S UTC')) -- cgit v1.2.3