web/views/calendar.py
branchtls-sprint
changeset 1398 5fe84a5f7035
parent 1149 1e19b6ef53a1
child 1604 fd943737d630
equal deleted inserted replaced
1397:6cbc7bc8ea6d 1398:5fe84a5f7035
   153         month_dates = list(date_range(firstday, lastday))
   153         month_dates = list(date_range(firstday, lastday))
   154         dates = {}
   154         dates = {}
   155         task_max = 0
   155         task_max = 0
   156         for row in xrange(self.rset.rowcount):
   156         for row in xrange(self.rset.rowcount):
   157             task = self.rset.get_entity(row, 0)
   157             task = self.rset.get_entity(row, 0)
   158             if len(self.rset[row]) > 1 and self.rset.description[row][1] == 'EUser':
   158             if len(self.rset[row]) > 1 and self.rset.description[row][1] == 'CWUser':
   159                 user = self.rset.get_entity(row, 1)
   159                 user = self.rset.get_entity(row, 1)
   160             else:
   160             else:
   161                 user = None
   161                 user = None
   162             the_dates = []
   162             the_dates = []
   163             tstart = todate(task.start)
   163             tstart = todate(task.start)