def add_trip(self): trip = Trip('', self, self.calendar) # add the stops for stop in self._stops: trip.add_trip_stop(TripStop(stop)) self.trips.append(trip) return trip