def _plans_for_milestone(self, obj): plans = filter(lambda p: p.milestone is not None, self.plans()) return PlanContainer(filter(lambda p: p.milestone.id == obj.id, plans))
def plans(self): return PlanContainer(list(map(Plan, self.api.plans(self._project_id))))