Changeset 859:1e789c934953 for src/mlx/gui/flight.py
- Timestamp:
- 06/18/17 11:17:51 (7 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/flight.py
r854 r859 528 528 if self._wizard.loggedIn: 529 529 for flight in loginResult.flights: 530 self. _addFlight(flight)530 self.addFlight(flight) 531 531 for flight in loginResult.reportedFlights: 532 532 self._pendingFlightsWindow.addReportedFlight(flight) … … 536 536 self._updatePendingButton() 537 537 538 def _addFlight(self, flight):538 def addFlight(self, flight): 539 539 """Add the given file to the list of flights.""" 540 540 self._flights.append(flight) … … 543 543 def _reflyFlight(self, flight): 544 544 """Refly the given flight.""" 545 self. _addFlight(flight)545 self.addFlight(flight) 546 546 self._updatePending() 547 547 … … 641 641 with open(fileName, "rt") as f: 642 642 bookedFlight.readFromFile(f) 643 self. _addFlight(bookedFlight)643 self.addFlight(bookedFlight) 644 644 except Exception, e: 645 645 print "Failed to load flight:", util.utf2unicode(str(e)) … … 5479 5479 """Reload the flights from the MAVA server.""" 5480 5480 self.login(callback, None, None) 5481 5482 def addFlight(self, bookedFlight): 5483 """Add the given booked flight to the flight selection page.""" 5484 self._flightSelectionPage.addFlight(bookedFlight) 5481 5485 5482 5486 def reflyFlight(self, bookedFlight):
Note:
See TracChangeset
for help on using the changeset viewer.