Helpviewer/Sync/FtpSyncHandler.py

branch
Py2 comp.
changeset 3058
0a02c433f52d
parent 3057
10516539f238
parent 3022
57179e4cdadd
child 3060
5883ce99ee12
equal deleted inserted replaced
3057:10516539f238 3058:0a02c433f52d
87 if not Preferences.getUI("UseProxy"): 87 if not Preferences.getUI("UseProxy"):
88 proxyType = E5FtpProxyType.NoProxy 88 proxyType = E5FtpProxyType.NoProxy
89 else: 89 else:
90 proxyType = Preferences.getUI("ProxyType/Ftp") 90 proxyType = Preferences.getUI("ProxyType/Ftp")
91 if proxyType != E5FtpProxyType.NoProxy: 91 if proxyType != E5FtpProxyType.NoProxy:
92 self.__ftp.setProxy(proxyType, 92 self.__ftp.setProxy(
93 proxyType,
93 Preferences.getUI("ProxyHost/Ftp"), 94 Preferences.getUI("ProxyHost/Ftp"),
94 Preferences.getUI("ProxyPort/Ftp")) 95 Preferences.getUI("ProxyPort/Ftp"))
95 if proxyType != E5FtpProxyType.NonAuthorizing: 96 if proxyType != E5FtpProxyType.NonAuthorizing:
96 self.__ftp.setProxyAuthentication( 97 self.__ftp.setProxyAuthentication(
97 Preferences.getUI("ProxyUser/Ftp"), 98 Preferences.getUI("ProxyUser/Ftp"),
345 346
346 def syncBookmarks(self): 347 def syncBookmarks(self):
347 """ 348 """
348 Public method to synchronize the bookmarks. 349 Public method to synchronize the bookmarks.
349 """ 350 """
350 self.__syncFile("bookmarks", 351 self.__syncFile(
352 "bookmarks",
351 Helpviewer.HelpWindow.HelpWindow.bookmarksManager().getFileName()) 353 Helpviewer.HelpWindow.HelpWindow.bookmarksManager().getFileName())
352 354
353 def syncHistory(self): 355 def syncHistory(self):
354 """ 356 """
355 Public method to synchronize the history. 357 Public method to synchronize the history.
356 """ 358 """
357 self.__syncFile("history", 359 self.__syncFile(
360 "history",
358 Helpviewer.HelpWindow.HelpWindow.historyManager().getFileName()) 361 Helpviewer.HelpWindow.HelpWindow.historyManager().getFileName())
359 362
360 def syncPasswords(self): 363 def syncPasswords(self):
361 """ 364 """
362 Public method to synchronize the passwords. 365 Public method to synchronize the passwords.
363 """ 366 """
364 self.__syncFile("passwords", 367 self.__syncFile(
368 "passwords",
365 Helpviewer.HelpWindow.HelpWindow.passwordManager().getFileName()) 369 Helpviewer.HelpWindow.HelpWindow.passwordManager().getFileName())
366 370
367 def syncUserAgents(self): 371 def syncUserAgents(self):
368 """ 372 """
369 Public method to synchronize the user agents. 373 Public method to synchronize the user agents.
370 """ 374 """
371 self.__syncFile("useragents", 375 self.__syncFile(
376 "useragents",
372 Helpviewer.HelpWindow.HelpWindow.userAgentsManager().getFileName()) 377 Helpviewer.HelpWindow.HelpWindow.userAgentsManager().getFileName())
373 378
374 def syncSpeedDial(self): 379 def syncSpeedDial(self):
375 """ 380 """
376 Public method to synchronize the speed dial data. 381 Public method to synchronize the speed dial data.
377 """ 382 """
378 self.__syncFile("speeddial", 383 self.__syncFile(
384 "speeddial",
379 Helpviewer.HelpWindow.HelpWindow.speedDial().getFileName()) 385 Helpviewer.HelpWindow.HelpWindow.speedDial().getFileName())
380 386
381 def shutdown(self): 387 def shutdown(self):
382 """ 388 """
383 Public method to shut down the handler. 389 Public method to shut down the handler.

eric ide

mercurial