Ignore:
Timestamp:
05/18/12 15:19:28 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Added support for the charter configuration version of the Boeing 737-800

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/web.py

    r188 r191  
    3434class BookedFlight(object):
    3535    """A flight that was booked."""
    36     TYPECODE2TYPE = { "736" : const.AIRCRAFT_B736,
    37                       "73G" : const.AIRCRAFT_B737,
    38                       "738" : const.AIRCRAFT_B738,
    39                       "733" : const.AIRCRAFT_B733,
    40                       "734" : const.AIRCRAFT_B734,
    41                       "735" : const.AIRCRAFT_B735,
    42                       "DH4" : const.AIRCRAFT_DH8D,
    43                       "762" : const.AIRCRAFT_B762,
    44                       "763" : const.AIRCRAFT_B763,
    45                       "CR2" : const.AIRCRAFT_CRJ2,
    46                       "F70" : const.AIRCRAFT_F70,
    47                       "LI2" : const.AIRCRAFT_DC3,
    48                       "TU3" : const.AIRCRAFT_T134,
    49                       "TU5" : const.AIRCRAFT_T154,
    50                       "YK4" : const.AIRCRAFT_YK40 }
    51 
    52     TYPE2TYPECODE = { const.AIRCRAFT_B736 : "736",
    53                       const.AIRCRAFT_B737 : "73G",
    54                       const.AIRCRAFT_B738 : "738",
    55                       const.AIRCRAFT_B733 : "733",
    56                       const.AIRCRAFT_B734 : "734",
    57                       const.AIRCRAFT_B735 : "735",
    58                       const.AIRCRAFT_DH8D : "DH4",
    59                       const.AIRCRAFT_B762 : "762",
    60                       const.AIRCRAFT_B763 : "763",
    61                       const.AIRCRAFT_CRJ2 : "CR2",
    62                       const.AIRCRAFT_F70  : "F70",
    63                       const.AIRCRAFT_DC3  : "LI2",
    64                       const.AIRCRAFT_T134 : "TU3",
    65                       const.AIRCRAFT_T154 : "TU5",
    66                       const.AIRCRAFT_YK40 : "YK4" }
     36    TYPECODE2TYPE = { "736"  : const.AIRCRAFT_B736,
     37                      "73G"  : const.AIRCRAFT_B737,
     38                      "738"  : const.AIRCRAFT_B738,
     39                      "73H"  : const.AIRCRAFT_B738C,
     40                      "733"  : const.AIRCRAFT_B733,
     41                      "734"  : const.AIRCRAFT_B734,
     42                      "735"  : const.AIRCRAFT_B735,
     43                      "DH4"  : const.AIRCRAFT_DH8D,
     44                      "762"  : const.AIRCRAFT_B762,
     45                      "763"  : const.AIRCRAFT_B763,
     46                      "CR2"  : const.AIRCRAFT_CRJ2,
     47                      "F70"  : const.AIRCRAFT_F70,
     48                      "LI2"  : const.AIRCRAFT_DC3,
     49                      "TU3"  : const.AIRCRAFT_T134,
     50                      "TU5"  : const.AIRCRAFT_T154,
     51                      "YK4"  : const.AIRCRAFT_YK40 }
     52
     53    TYPE2TYPECODE = { const.AIRCRAFT_B736  : "736",
     54                      const.AIRCRAFT_B737  : "73G",
     55                      const.AIRCRAFT_B738  : "738",
     56                      const.AIRCRAFT_B738C : "73H",
     57                      const.AIRCRAFT_B733  : "733",
     58                      const.AIRCRAFT_B734  : "734",
     59                      const.AIRCRAFT_B735  : "735",
     60                      const.AIRCRAFT_DH8D  : "DH4",
     61                      const.AIRCRAFT_B762  : "762",
     62                      const.AIRCRAFT_B763  : "763",
     63                      const.AIRCRAFT_CRJ2  : "CR2",
     64                      const.AIRCRAFT_F70   : "F70",
     65                      const.AIRCRAFT_DC3   : "LI2",
     66                      const.AIRCRAFT_T134  : "TU3",
     67                      const.AIRCRAFT_T154  : "TU5",
     68                      const.AIRCRAFT_YK40  : "YK4" }
    6769
    6870    @staticmethod
Note: See TracChangeset for help on using the changeset viewer.