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 |