Ignore:
Timestamp:
06/18/17 11:17:51 (7 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Flight booking works (re #304).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/gui/flight.py

    r854 r859  
    528528        if self._wizard.loggedIn:
    529529            for flight in loginResult.flights:
    530                 self._addFlight(flight)
     530                self.addFlight(flight)
    531531            for flight in loginResult.reportedFlights:
    532532                self._pendingFlightsWindow.addReportedFlight(flight)
     
    536536        self._updatePendingButton()
    537537
    538     def _addFlight(self, flight):
     538    def addFlight(self, flight):
    539539        """Add the given file to the list of flights."""
    540540        self._flights.append(flight)
     
    543543    def _reflyFlight(self, flight):
    544544        """Refly the given flight."""
    545         self._addFlight(flight)
     545        self.addFlight(flight)
    546546        self._updatePending()
    547547
     
    641641                with open(fileName, "rt") as f:
    642642                    bookedFlight.readFromFile(f)
    643                 self._addFlight(bookedFlight)
     643                self.addFlight(bookedFlight)
    644644            except Exception, e:
    645645                print "Failed to load flight:", util.utf2unicode(str(e))
     
    54795479        """Reload the flights from the MAVA server."""
    54805480        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)
    54815485
    54825486    def reflyFlight(self, bookedFlight):
Note: See TracChangeset for help on using the changeset viewer.