def populateUsages(self,q): days=q.getContext().query(tables.Day) for d in tables.everyday(20050620,20050624): q.appendRow(resource=self.luc, date=days.peek(d), start=itot(530), stop=itot(2145), type=self.a) for d in tables.everyday(20050625,20050628): q.appendRow(resource=self.luc, date=days.peek(d), type=self.k) for d in tables.everyday(20050628,20050702): q.appendRow(resource=self.gerd, date=days.peek(d), type=self.k)
def populateDays(self,q): for d in tables.everyday(20050601,20050731): q.appendRow(date=d)