def setEntries(self, entries):
      try:
        #tt = time.localtime(time.time())
        #tt = [0] * 9 # This needs --operator-funcs compile option
        tt = [0,0,0,0,0,0,0,0,0]
        if self.date:
            tt[0] = int(self.date[:4])
            tt[1] = int(self.date[4:6])
            tt[2] = int(self.date[6:8])
        tt[3] = 0
        tt[4] = 0
        tt[5] = 0
        tt[6] = -1
        tt[7] = -1
        tt[8] = -1
        timelines = {}
        for timeVO in entries:
            t1 = tt[0:]
            t2 = tt[0:]
            if not timeVO.start and not timeVO.end:
                continue
            t1[3] = int(timeVO.start[:2])
            t1[4] = int(timeVO.start[3:])
            t2[3] = int(timeVO.end[:2])
            t2[4] = int(timeVO.end[3:])
            t1 = time.mktime(t1)
            t2 = time.mktime(t2)
            dt = t2 - t1
            project = timelines.get(timeVO.project.lower(), [0, timeVO.project, {}])
            project[0] = project[0] + dt
            descr = project[2].get(timeVO.description.lower(), [0, timeVO.description])
            descr[0] = descr[0] + dt
            project[2][timeVO.description.lower()] = descr
            timelines[timeVO.project.lower()] = project
        for row in range(self.getRowCount()):
            self.removeRow(0)
        self.rows = 0
        self.addHeader()
        projects = timelines.keys()
        projects.sort()
        for project in projects:
            self.addRow([self.HHMM(timelines[project][0]), timelines[project][1]])
            descriptions = timelines[project][2]
            descriptions = descriptions.keys()
            descriptions.sort()
            for desc in descriptions:
                if timelines[project][2][desc][1]:
                    self.addRow(['', self.HHMM(timelines[project][2][desc][0]) + " " + timelines[project][2][desc][1]])
      except:
        raise
dataset/ETHPy150Open pyjs/pyjs/examples/timesheet/libtimesheet/view/components/Summary.py/Summary.setEntries/operator `or` -> `and`