Changeset 220:96ad81e11b85 for src/mlx/const.py
- Timestamp:
- 06/04/12 09:53:04 (12 years ago)
- Branch:
- default
- hg-Phase:
- (<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/const.py
r197 r220 203 203 #------------------------------------------------------------------------------- 204 204 205 flightTypes = [ FLIGHTTYPE_SCHEDULED, 206 FLIGHTTYPE_OLDTIMER, 207 FLIGHTTYPE_VIP, 208 FLIGHTTYPE_CHARTER ] 209 210 #------------------------------------------------------------------------------- 211 212 _flightTypeStrings = { FLIGHTTYPE_SCHEDULED : "scheduled", 213 FLIGHTTYPE_OLDTIMER : "ot", 214 FLIGHTTYPE_VIP : "vip", 215 FLIGHTTYPE_CHARTER : "charter" } 216 217 def flightType2string(flightType): 218 """Get the string equivalent of the given flight type.""" 219 print _flightTypeStrings 220 return _flightTypeStrings[flightType] \ 221 if flightType in _flightTypeStrings else None 222 223 #------------------------------------------------------------------------------- 224 205 225 # Delay code: loading problems 206 226 DELAYCODE_LOADING = 0
Note:
See TracChangeset
for help on using the changeset viewer.