web/views/timetable.py
branchstable
changeset 6677 5f105a374ffe
parent 5569 cb14af012a96
child 8190 2a3c1b787688
equal deleted inserted replaced
6676:39763487ba33 6677:5f105a374ffe
    52         users_max = {}
    52         users_max = {}
    53         # XXX: try refactoring with calendar.py:OneMonthCal
    53         # XXX: try refactoring with calendar.py:OneMonthCal
    54         for row in xrange(self.cw_rset.rowcount):
    54         for row in xrange(self.cw_rset.rowcount):
    55             task = self.cw_rset.get_entity(row, 0)
    55             task = self.cw_rset.get_entity(row, 0)
    56             icalendarable = task.cw_adapt_to('ICalendarable')
    56             icalendarable = task.cw_adapt_to('ICalendarable')
    57             if len(self.cw_rset[row]) > 1:
    57             if len(self.cw_rset[row]) > 1 and self.cw_rset.description[row][1] == 'CWUser':
    58                 user = self.cw_rset.get_entity(row, 1)
    58                 user = self.cw_rset.get_entity(row, 1)
    59             else:
    59             else:
    60                 user = ALL_USERS
    60                 user = ALL_USERS
    61             the_dates = []
    61             the_dates = []
    62             if icalendarable.start and icalendarable.stop:
    62             if icalendarable.start and icalendarable.stop: