fix name error in timetable view, always write unicode stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 24 Nov 2009 10:51:53 +0100
branchstable
changeset 3914 36be7a5e53ad
parent 3913 60f31797e01e
child 3915 2d23304289a6
fix name error in timetable view, always write unicode
web/views/timetable.py
--- a/web/views/timetable.py	Tue Nov 24 10:51:29 2009 +0100
+++ b/web/views/timetable.py	Tue Nov 24 10:51:53 2009 +0100
@@ -22,6 +22,7 @@
         self.lines = 1
 
 MIN_COLS = 3  # minimum number of task columns for a single user
+ALL_USERS = object()
 
 class TimeTableView(AnyRsetView):
     id = 'timetable'
@@ -137,7 +138,7 @@
         for user, width in zip(users, widths):
             self.w(u'<th colspan="%s">' % max(MIN_COLS, width))
             if user is ALL_USERS:
-                self.w('*')
+                self.w(u'*')
             else:
                 user.view('oneline', w=self.w)
             self.w(u'</th>')