Ignore:
Timestamp:
06/04/12 09:53:04 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

The Data tab of the PIREP viewer works

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/pirep.py

    r151 r220  
    1010class PIREP(object):
    1111    """A pilot's report of a flight."""
    12     _delayCodeNames = { const.DELAYCODE_LOADING : "Loading Problems",
    13                         const.DELAYCODE_NETWORK : "Net Problems",
    14                         const.DELAYCODE_SYSTEM : "System Crash/Freezing",
    15                         const.DELAYCODE_TRAFFIC : "Traffic Problems",
    16                         const.DELAYCODE_WEATHER : "Weather Problems",
    17                         const.DELAYCODE_VATSIM : "VATSIM Problem",
    18                         const.DELAYCODE_CONTROLLER : "Controller's Fault",
    19                         const.DELAYCODE_NAVIGATION : "Navigation Problem",
    20                         const.DELAYCODE_APRON : "Apron Navigation Problems",
    21                         const.DELAYCODE_PERSONAL : "Personal Reasons" }
     12    delayCodeNames = { const.DELAYCODE_LOADING : "Loading Problems",
     13                       const.DELAYCODE_NETWORK : "Net Problems",
     14                       const.DELAYCODE_SYSTEM : "System Crash/Freezing",
     15                       const.DELAYCODE_TRAFFIC : "Traffic Problems",
     16                       const.DELAYCODE_WEATHER : "Weather Problems",
     17                       const.DELAYCODE_VATSIM : "VATSIM Problem",
     18                       const.DELAYCODE_CONTROLLER : "Controller's Fault",
     19                       const.DELAYCODE_NAVIGATION : "Navigation Problem",
     20                       const.DELAYCODE_APRON : "Apron Navigation Problems",
     21                       const.DELAYCODE_PERSONAL : "Personal Reasons" }
    2222
    2323    @staticmethod
     
    117117            for code in self.delayCodes:
    118118                if s: s += ", "
    119                 s += PIREP._delayCodeNames[code]
     119                s += PIREP.delayCodeNames[code]
    120120            return s
    121121
Note: See TracChangeset for help on using the changeset viewer.