Ignore:
Timestamp:
01/02/16 12:27:19 (8 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Prepared the ACARS and PIREP objects for serialization (re #283).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/web.py

    r742 r743  
    844844class SendPIREP(Request):
    845845    """A request to send a PIREP to the MAVA website."""
    846     _flightTypes = { const.FLIGHTTYPE_SCHEDULED : "SCHEDULED",
    847                      const.FLIGHTTYPE_OLDTIMER : "OT",
    848                      const.FLIGHTTYPE_VIP : "VIP",
    849                      const.FLIGHTTYPE_CHARTER : "CHARTER" }
    850 
    851846    _latin2Encoder = codecs.getencoder("iso-8859-2")
    852847
     
    877872        data["mail"] = str(pirep.mailWeight)
    878873
    879         data["flttype"] = SendPIREP._flightTypes[pirep.flightType]
     874        data["flttype"] = pirep.flightTypeText
    880875        data["onoff"] = "1" if pirep.online else "0"
    881876        data["bt_dep"] = util.getTimestampString(pirep.blockTimeStart)
Note: See TracChangeset for help on using the changeset viewer.