Changeset 740:940403ee48fb for src/mlx
- Timestamp:
- 01/02/16 12:16:46 (9 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- src/mlx
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/common.py
r651 r740 15 15 # used, which is the default on Windows or when the \c FORCE_PYGTK environment 16 16 # variable is set. 17 18 #--------------------------------------------------------------------------------------- 19 20 MAVA_BASE_URL = os.environ.get("MAVA_BASE_URL", "http://virtualairlines.hu") 17 21 18 22 #------------------------------------------------------------------------------- -
src/mlx/gui/acars.py
r649 r740 21 21 """The flight info tab.""" 22 22 # The URL of the ACARS map 23 URL = "http://virtualairlines.hu/acars2/show.html"23 URL = MAVA_BASE_URL + "/acars2/show.html" 24 24 25 25 def __init__(self, gui): -
src/mlx/web.py
r570 r740 2 2 import const 3 3 import util 4 5 from common import MAVA_BASE_URL 4 6 5 7 import threading … … 687 689 688 690 if self._entranceExam: 689 url = "http://www.virtualairlines.hu/ellenorzo/getflightplan.php?pid=%s" % \691 url = MAVA_BASE_URL + "/ellenorzo/getflightplan.php?pid=%s" % \ 690 692 (pilotID,) 691 693 else: 692 url = "http://www.virtualairlines.hu/leker2.php?pid=%s&psw=%s" % \694 url = MAVA_BASE_URL + "/leker2.php?pid=%s&psw=%s" % \ 693 695 (pilotID, password) 694 696 … … 745 747 def run(self): 746 748 """Perform the login request.""" 747 url = "http://www.virtualairlines.hu/onlinegates_get.php"749 url = MAVA_BASE_URL + "/onlinegates_get.php" 748 750 749 751 f = urllib2.urlopen(url, timeout = 10.0) … … 767 769 def run(self): 768 770 """Perform the plane update.""" 769 url = "http://www.virtualairlines.hu/onlinegates_set.php"771 url = MAVA_BASE_URL + "/onlinegates_set.php" 770 772 771 773 status = "H" if self._status==const.PLANE_HOME else \ … … 912 914 def run(self): 913 915 """Perform the sending of the PIREP.""" 914 url = "http://www.virtualairlines.hu/malevacars.php" 915 #url = "http://localhost:15000" 916 url = MAVA_BASE_URL + "/malevacars.php" 916 917 917 918 pirep = self._pirep … … 993 994 print "Sending the online ACARS" 994 995 995 url = "http://www.virtualairlines.hu/acars2/acarsonline.php"996 url = MAVA_BASE_URL + "/acars2/acarsonline.php" 996 997 997 998 acars = self._acars
Note:
See TracChangeset
for help on using the changeset viewer.