[timetable view] ensure we actually have a user in the rset cell stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 05 Nov 2010 10:41:56 +0100
branchstable
changeset 6677 5f105a374ffe
parent 6676 39763487ba33
child 6678 5726677f0ae7
[timetable view] ensure we actually have a user in the rset cell
web/views/timetable.py
--- a/web/views/timetable.py	Fri Nov 05 09:19:53 2010 +0100
+++ b/web/views/timetable.py	Fri Nov 05 10:41:56 2010 +0100
@@ -54,7 +54,7 @@
         for row in xrange(self.cw_rset.rowcount):
             task = self.cw_rset.get_entity(row, 0)
             icalendarable = task.cw_adapt_to('ICalendarable')
-            if len(self.cw_rset[row]) > 1:
+            if len(self.cw_rset[row]) > 1 and self.cw_rset.description[row][1] == 'CWUser':
                 user = self.cw_rset.get_entity(row, 1)
             else:
                 user = ALL_USERS