Changeset 262:16f4855e111a for src/mlx/pirep.py
- Timestamp:
- 06/27/12 17:31:51 (12 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/pirep.py
r220 r262 39 39 return None 40 40 41 def __init__(self, gui):42 """Initialize the PIREP from the given GUI."""43 self.bookedFlight = gui.bookedFlight44 self.cargoWeight = gui.cargoWeight41 def __init__(self, flight): 42 """Initialize the PIREP from the given flight.""" 43 self.bookedFlight = flight.bookedFlight 44 self.cargoWeight = flight.cargoWeight 45 45 46 self.filedCruiseAltitude = gui.filedCruiseAltitude47 self.cruiseAltitude = gui.cruiseAltitude48 self.route = gui.route46 self.filedCruiseAltitude = flight.filedCruiseAltitude 47 self.cruiseAltitude = flight.cruiseAltitude 48 self.route = flight.route 49 49 50 self.departureMETAR = gui.departureMETAR.upper()51 self.arrivalMETAR = gui.arrivalMETAR.upper()50 self.departureMETAR = flight.departureMETAR.upper() 51 self.arrivalMETAR = flight.arrivalMETAR.upper() 52 52 53 self.departureRunway = gui.departureRunway.upper()54 self.sid = gui.sid.upper()53 self.departureRunway = flight.departureRunway.upper() 54 self.sid = flight.sid.upper() 55 55 56 self.star = gui.star57 self.transition = gui.transition58 self.approachType = gui.approachType.upper()59 self.arrivalRunway = gui.arrivalRunway.upper()56 self.star = flight.star 57 self.transition = flight.transition 58 self.approachType = flight.approachType.upper() 59 self.arrivalRunway = flight.arrivalRunway.upper() 60 60 61 self.flightType = gui.flightType62 self.online = gui.online61 self.flightType = flight.flightType 62 self.online = flight.online 63 63 64 self.comments = gui.comments65 self.flightDefects = gui.flightDefects66 self.delayCodes = gui.delayCodes64 self.comments = flight.comments 65 self.flightDefects = flight.flightDefects 66 self.delayCodes = flight.delayCodes 67 67 68 flight = gui.flight69 68 self.blockTimeStart = flight.blockTimeStart 70 69 self.flightTimeStart = flight.flightTimeStart … … 74 73 self.fuelUsed = flight.startFuel - flight.endFuel 75 74 76 logger = gui.logger75 logger = flight.logger 77 76 self.rating = logger.getRating() 78 77 self.logLines = logger.lines
Note:
See TracChangeset
for help on using the changeset viewer.