author | sylvain.thenault@logilab.fr |
Thu, 30 Apr 2009 10:46:50 +0200 | |
branch | tls-sprint |
changeset 1575 | 5eb02a4a4bcf |
parent 1574 | 0c6dbb774f54 |
child 1576 | 3bfcf1e4eb26 |
--- a/web/views/timetable.py Thu Apr 30 10:38:11 2009 +0200 +++ b/web/views/timetable.py Thu Apr 30 10:46:50 2009 +0200 @@ -164,7 +164,7 @@ previous_is_empty = False klass = "even" - if date.day_of_week in (5, 6) and not empty_line: + if date.weekday() in (5, 6) and not empty_line: klass = "odd" self.w(u'<tr class="%s">' % klass) odd = not odd