Changeset 9989a6a in sasview
- Timestamp:
- Jul 6, 2015 9:35:09 AM (9 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 098f3d2
- Parents:
- be34c71
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sasview/local_config.py
r686fd10 r9989a6a 13 13 __build__ = sas.sasview.__build__ 14 14 __download_page__ = 'https://github.com/SasView/sasview/releases' 15 __update_URL__ = 'http://www.sasview.org/ sasview.latestversion'15 __update_URL__ = 'http://www.sasview.org/latestversion.json' 16 16 17 17 -
src/sas/guiframe/config.py
r686fd10 r9989a6a 10 10 __build__ = '1' 11 11 __download_page__ = 'https://github.com/SasView/sasview/releases' 12 __update_URL__ = 'http://www.sasview.org/ sasview.latestversion'12 __update_URL__ = 'http://www.sasview.org/latestversion.json' 13 13 14 14 -
src/sas/guiframe/gui_manager.py
r805f07a r9989a6a 27 27 import urllib 28 28 import urllib2 29 29 import json 30 30 31 31 from sas.guiframe.events import EVT_CATEGORY … … 2054 2054 content = "0.0.0" 2055 2055 2056 version = content.strip() 2057 if len(re.findall('\d+\.\d+\.\d+$', version)) < 0: 2058 content = "0.0.0" 2059 self._process_version(content, standalone=event == None) 2060 2061 def _process_version(self, version, standalone=True): 2056 version_info = json.loads(content) 2057 self._process_version(version_info, standalone=event == None) 2058 2059 def _process_version(self, version_info, standalone=True): 2062 2060 """ 2063 2061 Call-back method for the process of checking for updates. … … 2071 2069 2072 2070 """ 2071 version = version_info["version"] 2073 2072 try: 2074 2073 if version == "0.0.0": … … 2080 2079 if not standalone: 2081 2080 import webbrowser 2082 webbrowser.open(config.__download_page__) 2081 if "download_url" in version_info: 2082 webbrowser.open(version_info["download_url"]) 2083 else: 2084 webbrowser.open(config.__download_page__) 2083 2085 else: 2084 2086 msg += "See the help menu to download it."
Note: See TracChangeset
for help on using the changeset viewer.