eric6/WebBrowser/Sync/FtpSyncHandler.py

branch
maintenance
changeset 8400
b3eefd7e58d1
parent 8273
698ae46f40a4
parent 8283
3139cbc98a14
equal deleted inserted replaced
8274:197414ba11cc 8400:b3eefd7e58d1
83 83
84 self.__ftp = E5Ftp() 84 self.__ftp = E5Ftp()
85 85
86 # do proxy setup 86 # do proxy setup
87 proxyType = ( 87 proxyType = (
88 E5FtpProxyType.NoProxy 88 E5FtpProxyType.NO_PROXY
89 if not Preferences.getUI("UseProxy") else 89 if not Preferences.getUI("UseProxy") else
90 Preferences.getUI("ProxyType/Ftp") 90 Preferences.getUI("ProxyType/Ftp")
91 ) 91 )
92 if proxyType != E5FtpProxyType.NoProxy: 92 if proxyType != E5FtpProxyType.NO_PROXY:
93 self.__ftp.setProxy( 93 self.__ftp.setProxy(
94 proxyType, 94 proxyType,
95 Preferences.getUI("ProxyHost/Ftp"), 95 Preferences.getUI("ProxyHost/Ftp"),
96 Preferences.getUI("ProxyPort/Ftp")) 96 Preferences.getUI("ProxyPort/Ftp"))
97 if proxyType != E5FtpProxyType.NonAuthorizing: 97 if proxyType != E5FtpProxyType.NON_AUTHORIZING:
98 self.__ftp.setProxyAuthentication( 98 self.__ftp.setProxyAuthentication(
99 Preferences.getUI("ProxyUser/Ftp"), 99 Preferences.getUI("ProxyUser/Ftp"),
100 Preferences.getUI("ProxyPassword/Ftp"), 100 Preferences.getUI("ProxyPassword/Ftp"),
101 Preferences.getUI("ProxyAccount/Ftp")) 101 Preferences.getUI("ProxyAccount/Ftp"))
102 102

eric ide

mercurial