Exemple #1
0
	def _no_xdays_range(self,start,end):
		return range_invert(start,end-start, range_union(*(d._range(start,end) for d in self.xdays.all())))
Exemple #2
0
	def _group_xrange(self,start,end):
		gx = []
		for g in self.groups.all():
			for gd in g.xdays.all():
				gx.append(gd._range(start,end))
		return range_invert(start,end-start,range_union(*gx))
Exemple #3
0
 def _group_xrange(self, start, end):
     gx = []
     for g in self.groups.all():
         for gd in g.xdays.all():
             gx.append(gd._range(start, end))
     return range_invert(start, end - start, range_union(*gx))