Ignore:
Timestamp:
06/04/12 09:53:04 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

The Data tab of the PIREP viewer works

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/const.py

    r197 r220  
    203203#-------------------------------------------------------------------------------
    204204
     205flightTypes = [ 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
     217def 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
    205225# Delay code: loading problems
    206226DELAYCODE_LOADING = 0
Note: See TracChangeset for help on using the changeset viewer.