Changeset 326:cee8a7512e56
- Timestamp:
- 10/21/12 05:45:43 (12 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- src/mlx
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/checks.py
r324 r326 473 473 """Get the message for the given NAV radio setting.""" 474 474 message = u"%s frequency: %s MHz" % (logName, frequency) 475 if obs is not None: message += u" [%d\u00b0]" % (obs,)475 if obs is not None: message += u" (%d\u00b0)" % (obs,) 476 476 return message 477 477 -
src/mlx/web.py
r313 r326 676 676 677 677 def run(self): 678 """Perform the retrieval opf the METARs."""678 """Perform the sending of the PIREP.""" 679 679 url = "http://www.virtualairlines.hu/malevacars.php" 680 #url = "http://localhost:15000" 680 681 681 682 pirep = self._pirep 682 683 683 684 data = {} 684 data["acarsdata"] = pirep.getACARSText()685 data["acarsdata"] = SendPIREP._latin2Encoder(pirep.getACARSText())[0] 685 686 686 687 bookedFlight = pirep.bookedFlight … … 729 730 data["insdate"] = datetime.date.today().strftime("%Y-%m-%d") 730 731 731 f = urllib2.urlopen(url, urllib.urlencode(data), timeout = 10.0) 732 postData = urllib.urlencode(data) 733 f = urllib2.urlopen(url, postData, timeout = 10.0) 732 734 try: 733 735 result = Result()
Note:
See TracChangeset
for help on using the changeset viewer.