Changeset 1032:36f152c70cd7 for src
- Timestamp:
- 03/14/22 08:45:50 (3 years ago)
- Branch:
- python3
- Phase:
- public
- Location:
- src/mlx
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/const.py
r1031 r1032 108 108 ## Aircraft type: British Aerospace BAe-146 109 109 AIRCRAFT_B462 = 17 110 111 ## Aircraft type: Ilyushin IL-62 112 AIRCRAFT_IL62 = 18 110 113 111 114 #------------------------------------------------------------------------------- … … 122 125 AIRCRAFT_T154, AIRCRAFT_T134, 123 126 AIRCRAFT_YK40, AIRCRAFT_DC3, 124 AIRCRAFT_B462 ]127 AIRCRAFT_B462, AIRCRAFT_IL62] 125 128 126 129 #------------------------------------------------------------------------------- -
src/mlx/rpc.py
r955 r1032 193 193 """A booked flight.""" 194 194 # FIXME: copied from web.BookedFlight 195 TYPECODE2TYPE = { " 736" : const.AIRCRAFT_B736,196 " 73G" : const.AIRCRAFT_B737,197 " 738" : const.AIRCRAFT_B738,198 " 73H" : const.AIRCRAFT_B738C,199 " 732" : const.AIRCRAFT_B732,200 " 733" : const.AIRCRAFT_B733,201 " 734" : const.AIRCRAFT_B734,202 " 735" : const.AIRCRAFT_B735,203 "DH 4" : const.AIRCRAFT_DH8D,204 " 762" : const.AIRCRAFT_B762,205 " 763" : const.AIRCRAFT_B763,206 "CR 2" : const.AIRCRAFT_CRJ2,195 TYPECODE2TYPE = { "B736" : const.AIRCRAFT_B736, 196 "B737" : const.AIRCRAFT_B737, 197 "B738" : const.AIRCRAFT_B738, 198 "B73H" : const.AIRCRAFT_B738C, 199 "B732" : const.AIRCRAFT_B732, 200 "B733" : const.AIRCRAFT_B733, 201 "B734" : const.AIRCRAFT_B734, 202 "B735" : const.AIRCRAFT_B735, 203 "DH8D" : const.AIRCRAFT_DH8D, 204 "B762" : const.AIRCRAFT_B762, 205 "B763" : const.AIRCRAFT_B763, 206 "CRJ2" : const.AIRCRAFT_CRJ2, 207 207 "F70" : const.AIRCRAFT_F70, 208 208 "LI2" : const.AIRCRAFT_DC3, 209 "TU3" : const.AIRCRAFT_T134, 210 "TU5" : const.AIRCRAFT_T154, 211 "YK4" : const.AIRCRAFT_YK40, 212 "146" : const.AIRCRAFT_B462 } 213 214 # FIXME: copied from web.BookedFlight 215 TYPE2TYPECODE = { const.AIRCRAFT_B736 : "736", 216 const.AIRCRAFT_B737 : "73G", 217 const.AIRCRAFT_B738 : "738", 218 const.AIRCRAFT_B738C : "73H", 219 const.AIRCRAFT_B732 : "732", 220 const.AIRCRAFT_B733 : "733", 221 const.AIRCRAFT_B734 : "734", 222 const.AIRCRAFT_B735 : "735", 223 const.AIRCRAFT_DH8D : "DH4", 224 const.AIRCRAFT_B762 : "762", 225 const.AIRCRAFT_B763 : "763", 226 const.AIRCRAFT_CRJ2 : "CR2", 209 "T134" : const.AIRCRAFT_T134, 210 "T154" : const.AIRCRAFT_T154, 211 "YK40" : const.AIRCRAFT_YK40, 212 "B462" : const.AIRCRAFT_B462, 213 "IL62" : const.AIRCRAFT_IL62 } 214 215 # FIXME: copied from web.BookedFlight 216 TYPE2TYPECODE = { const.AIRCRAFT_B736 : "B736", 217 const.AIRCRAFT_B737 : "B737", 218 const.AIRCRAFT_B738 : "B738", 219 const.AIRCRAFT_B738C : "B73H", 220 const.AIRCRAFT_B732 : "B732", 221 const.AIRCRAFT_B733 : "B733", 222 const.AIRCRAFT_B734 : "B734", 223 const.AIRCRAFT_B735 : "B735", 224 const.AIRCRAFT_DH8D : "DH8D", 225 const.AIRCRAFT_B762 : "B762", 226 const.AIRCRAFT_B763 : "B763", 227 const.AIRCRAFT_CRJ2 : "CRJ2", 227 228 const.AIRCRAFT_F70 : "F70", 228 229 const.AIRCRAFT_DC3 : "LI2", 229 const.AIRCRAFT_T134 : "TU3", 230 const.AIRCRAFT_T154 : "TU5", 231 const.AIRCRAFT_YK40 : "YK4", 232 const.AIRCRAFT_B462 : "146" } 230 const.AIRCRAFT_T134 : "T134", 231 const.AIRCRAFT_T154 : "T155", 232 const.AIRCRAFT_YK40 : "YK40", 233 const.AIRCRAFT_B462 : "B462", 234 const.AIRCRAFT_IL62 : "IL62" } 233 235 234 236 # FIXME: copied from web.BookedFlight -
src/mlx/web.py
r963 r1032 58 58 class BookedFlight(object): 59 59 """A flight that was booked.""" 60 TYPECODE2TYPE = { " 736" : const.AIRCRAFT_B736,61 " 73G" : const.AIRCRAFT_B737,62 " 738" : const.AIRCRAFT_B738,63 " 73H" : const.AIRCRAFT_B738C,64 " 732" : const.AIRCRAFT_B732,65 " 733" : const.AIRCRAFT_B733,66 " 734" : const.AIRCRAFT_B734,67 " 735" : const.AIRCRAFT_B735,68 "DH 4" : const.AIRCRAFT_DH8D,69 " 762" : const.AIRCRAFT_B762,70 " 763" : const.AIRCRAFT_B763,71 "CR 2" : const.AIRCRAFT_CRJ2,60 TYPECODE2TYPE = { "B736" : const.AIRCRAFT_B736, 61 "B737" : const.AIRCRAFT_B737, 62 "B738" : const.AIRCRAFT_B738, 63 "B73H" : const.AIRCRAFT_B738C, 64 "B732" : const.AIRCRAFT_B732, 65 "B733" : const.AIRCRAFT_B733, 66 "B734" : const.AIRCRAFT_B734, 67 "B735" : const.AIRCRAFT_B735, 68 "DH8D" : const.AIRCRAFT_DH8D, 69 "B762" : const.AIRCRAFT_B762, 70 "B763" : const.AIRCRAFT_B763, 71 "CRJ2" : const.AIRCRAFT_CRJ2, 72 72 "F70" : const.AIRCRAFT_F70, 73 73 "LI2" : const.AIRCRAFT_DC3, 74 "TU3" : const.AIRCRAFT_T134, 75 "TU5" : const.AIRCRAFT_T154, 76 "YK4" : const.AIRCRAFT_YK40, 77 "146" : const.AIRCRAFT_B462 } 78 79 TYPE2TYPECODE = { const.AIRCRAFT_B736 : "736", 80 const.AIRCRAFT_B737 : "73G", 81 const.AIRCRAFT_B738 : "738", 82 const.AIRCRAFT_B738C : "73H", 83 const.AIRCRAFT_B732 : "732", 84 const.AIRCRAFT_B733 : "733", 85 const.AIRCRAFT_B734 : "734", 86 const.AIRCRAFT_B735 : "735", 87 const.AIRCRAFT_DH8D : "DH4", 88 const.AIRCRAFT_B762 : "762", 89 const.AIRCRAFT_B763 : "763", 90 const.AIRCRAFT_CRJ2 : "CR2", 74 "T134" : const.AIRCRAFT_T134, 75 "T154" : const.AIRCRAFT_T154, 76 "YK40" : const.AIRCRAFT_YK40, 77 "B462" : const.AIRCRAFT_B462, 78 "IL62" : const.AIRCRAFT_IL62 } 79 80 TYPE2TYPECODE = { const.AIRCRAFT_B736 : "B736", 81 const.AIRCRAFT_B737 : "B737", 82 const.AIRCRAFT_B738 : "B738", 83 const.AIRCRAFT_B738C : "B73H", 84 const.AIRCRAFT_B732 : "B732", 85 const.AIRCRAFT_B733 : "B733", 86 const.AIRCRAFT_B734 : "B734", 87 const.AIRCRAFT_B735 : "B735", 88 const.AIRCRAFT_DH8D : "DH8D", 89 const.AIRCRAFT_B762 : "B762", 90 const.AIRCRAFT_B763 : "B763", 91 const.AIRCRAFT_CRJ2 : "CRJ2", 91 92 const.AIRCRAFT_F70 : "F70", 92 93 const.AIRCRAFT_DC3 : "LI2", 93 const.AIRCRAFT_T134 : "TU3", 94 const.AIRCRAFT_T154 : "TU5", 95 const.AIRCRAFT_YK40 : "YK4", 96 const.AIRCRAFT_B462 : "146" } 94 const.AIRCRAFT_T134 : "T134", 95 const.AIRCRAFT_T154 : "T155", 96 const.AIRCRAFT_YK40 : "YK40", 97 const.AIRCRAFT_B462 : "B462", 98 const.AIRCRAFT_IL62 : "IL62" } 97 99 98 100 checkFlightTypes = [ const.AIRCRAFT_B736, const.AIRCRAFT_B737,
Note:
See TracChangeset
for help on using the changeset viewer.