Changeset 1011:6a2730357409
- Timestamp:
- 07/14/19 14:55:32 (5 years ago)
- Branch:
- python3
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/config.py
r919 r1011 211 211 class Config(object): 212 212 """Our configuration.""" 213 DEFAULT_UPDATE_URL = "http ://mlx.varadiistvan.hu/update"213 DEFAULT_UPDATE_URL = "https://mlx.varadiistvan.hu/update" 214 214 215 215 _messageTypesSection = "messageTypes" … … 258 258 if secondaryInstallation: 259 259 self._updateURL += "/exp" 260 self._updateURLUpdated = True 260 261 self._useRPC = True 261 262 … … 703 704 def load(self): 704 705 """Load the configuration from its default location.""" 706 self._updateURLUpdated = False 707 705 708 try: 706 709 config = configparser.RawConfigParser() … … 788 791 Config.DEFAULT_UPDATE_URL + 789 792 ("/exp" if secondaryInstallation else "")) 793 self._updateURLUpdated = self._getBoolean(config, "update", 794 "urlUpdated", False) 795 if self._updateURL.startswith("http://") and not self._updateURLUpdated: 796 self._updateURL = "https://" + self._updateURL[7:] 797 self._updateURLUpdated = True 798 790 799 self._useRPC = self._getBoolean(config, "general", "useRPC", True) 791 800 … … 880 889 "yes" if self._autoUpdate else "no") 881 890 config.set("update", "url", self._updateURL) 891 config.set("update", "urlUpdated", self._updateURLUpdated) 882 892 883 893 config.set("general", "useRPC", … … 1018 1028 print(" autoUpdate:", self._autoUpdate) 1019 1029 print(" updateURL:", self._updateURL) 1030 print(" updateURLUpdated:", self._updateURLUpdated) 1020 1031 print(" useRPC:", self._useRPC) 1021 1032
Note:
See TracChangeset
for help on using the changeset viewer.