Changeset 402:b668511b4ac8 for src/mlx/config.py
- Timestamp:
- 12/27/12 08:28:06 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/config.py
r401 r402 787 787 config.write(f) 788 788 self._modified = False 789 790 print "Configuration saved:" 791 self.log() 792 789 793 except Exception, e: 790 794 print >> sys.stderr, "Failed to update config: " + \ … … 863 867 return locale.getdefaultlocale()[0] 864 868 869 def log(self): 870 """Log the configuration by printing the values""" 871 print " pilot ID:", self._pilotID 872 print " rememberPassword:", self._rememberPassword 873 874 print " language:", self._language 875 876 print " hideMinimizedWindow:", self._hideMinimizedWindow 877 print " quitOnClose:", self._quitOnClose 878 879 print " onlineGateSystem:", self._onlineGateSystem 880 print " onlineACARS:", self._onlineACARS 881 882 print " flareTimeFromFS:", self._flareTimeFromFS 883 print " syncFSTime:", self._syncFSTime 884 print " usingFS2Crew:", self._usingFS2Crew 885 886 print " iasSmoothingLength:", self._iasSmoothingLength 887 print " vsSmoothingLength:", self._vsSmoothingLength 888 889 print " pirepDirectory:", self._pirepDirectory 890 print " pirepAutoSave:", self._pirepAutoSave 891 892 print " enableSounds:", self._enableSounds 893 894 print " pilotControlsSounds:", self._pilotControlsSounds 895 print " pilotHotkey:", str(self._pilotHotkey) 896 897 print " enableApproachCallouts:", self._enableApproachCallouts 898 print " speedbrakeAtTD:", self._speedbrakeAtTD 899 900 print " enableChecklists:", self._enableChecklists 901 print " checklistHotkey:", str(self._checklistHotkey) 902 903 print " autoUpdate:", self._autoUpdate 904 print " updateURL:", self._updateURL 905 906 print " messageTypeLevels:" 907 for (type, level) in self._messageTypeLevels.iteritems(): 908 print " %s: %s" % (const.messageType2string(type), 909 const.messageLevel2string(level)) 910 911 print " checklists:" 912 for (type, checklist) in self._checklists.iteritems(): 913 print " %s:" % (const.icaoCodes[type],) 914 for path in checklist: 915 print " " + path 916 917 print " approachCallouts:" 918 for (type, approachCallouts) in self._approachCallouts.iteritems(): 919 print " %s:" % (const.icaoCodes[type],) 920 for (altitude, path) in approachCallouts: 921 print " %d: %s" % (altitude, path) 922 865 923 #-------------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.