Esempio n. 1
0
	def items(self, master):
		options = BlanketWallInsulation.oftype(master.building.blanket_wall_insulation)
		next = self.next(options, self.r)
		insulations = [next]
		r = self.r - (next.r or 0)
		options = RigidWallInsulation.oftype(master.building.rigid_wall_insulation)
		while r > 0:
			next = self.next(options, r)
			if next.r is None: break
			insulations.append(next)
			r -= next.r
		sheets = filter(lambda i: i.r, insulations)
		return (SheetCost(sheet, self) for sheet in sheets)
Esempio n. 2
0
 def items(self, master):
     options = BlanketWallInsulation.oftype(
         master.building.blanket_wall_insulation)
     next = self.next(options, self.r)
     insulations = [next]
     r = self.r - (next.r or 0)
     options = RigidWallInsulation.oftype(
         master.building.rigid_wall_insulation)
     while r > 0:
         next = self.next(options, r)
         if next.r is None: break
         insulations.append(next)
         r -= next.r
     sheets = filter(lambda i: i.r, insulations)
     return (SheetCost(sheet, self) for sheet in sheets)