Preferences/__init__.py

changeset 3676
2f62b060a931
parent 3670
f0cb7579c0b4
child 3691
c473d6347610
equal deleted inserted replaced
3675:aa48d3e9b008 3676:2f62b060a931
187 "ProxyPassword/Https": "", 187 "ProxyPassword/Https": "",
188 "ProxyPassword/Ftp": "", 188 "ProxyPassword/Ftp": "",
189 "ProxyType/Ftp": E5FtpProxyType.NoProxy, 189 "ProxyType/Ftp": E5FtpProxyType.NoProxy,
190 "ProxyAccount/Ftp": "", 190 "ProxyAccount/Ftp": "",
191 191
192 "PluginRepositoryUrl5": 192 "PluginRepositoryUrl6":
193 "http://eric-ide.python-projects.org/plugins5/repository.xml", 193 "http://eric-ide.python-projects.org/plugins6/repository.xml",
194 "VersionsUrls5": [ 194 "VersionsUrls6": [
195 "http://die-offenbachs.homelinux.org:48888/eric/snapshots5/" 195 "http://die-offenbachs.homelinux.org:48888/eric/versions/"
196 "versions", 196 "versions6",
197 "http://eric-ide.python-projects.org/snapshots5/versions", 197 "http://eric-ide.python-projects.org/versions/versions6",
198 ], 198 ],
199 199
200 "OpenOnStartup": 0, # 0 = nothing 200 "OpenOnStartup": 0, # 0 = nothing
201 # 1 = last file 201 # 1 = last file
202 # 2 = last project 202 # 2 = last project
1517 state = prefClass.settings.value("UI/" + key) 1517 state = prefClass.settings.value("UI/" + key)
1518 if state is not None: 1518 if state is not None:
1519 return state 1519 return state
1520 else: 1520 else:
1521 return prefClass.uiDefaults[key] 1521 return prefClass.uiDefaults[key]
1522 elif key in ["VersionsUrls5"]: 1522 elif key in ["VersionsUrls6"]:
1523 urls = toList( 1523 urls = toList(
1524 prefClass.settings.value("UI/" + key, prefClass.uiDefaults[key])) 1524 prefClass.settings.value("UI/" + key, prefClass.uiDefaults[key]))
1525 if len(urls) == 0: 1525 if len(urls) == 0:
1526 return prefClass.uiDefaults[key] 1526 return prefClass.uiDefaults[key]
1527 else: 1527 else:

eric ide

mercurial