Plugins/VcsPlugins/vcsPySvn/SvnDialogMixin.py

changeset 4388
41c5865695b0
parent 4021
195a471c327b
child 4390
c0d9ef07020b
equal deleted inserted replaced
4386:510090f78d0a 4388:41c5865695b0
8 the pysvn client. 8 the pysvn client.
9 """ 9 """
10 10
11 from __future__ import unicode_literals 11 from __future__ import unicode_literals
12 12
13 from PyQt5.QtGui import QCursor
14 from PyQt5.QtWidgets import QApplication, QDialog, QWidget 13 from PyQt5.QtWidgets import QApplication, QDialog, QWidget
15 14
16 15
17 class SvnDialogMixin(object): 16 class SvnDialogMixin(object):
18 """ 17 """
62 by subversion, username and password contain the relevant data 61 by subversion, username and password contain the relevant data
63 as strings and save is a flag indicating, that username and 62 as strings and save is a flag indicating, that username and
64 password should be saved. 63 password should be saved.
65 """ 64 """
66 from .SvnLoginDialog import SvnLoginDialog 65 from .SvnLoginDialog import SvnLoginDialog
67 cursor = QCursor(QApplication.overrideCursor()) 66 cursor = QApplication.overrideCursor()
68 if cursor is not None: 67 if cursor is not None:
69 QApplication.restoreOverrideCursor() 68 QApplication.restoreOverrideCursor()
70 parent = isinstance(self, QWidget) and self or None 69 parent = isinstance(self, QWidget) and self or None
71 dlg = SvnLoginDialog(realm, username, may_save, parent) 70 dlg = SvnLoginDialog(realm, username, may_save, parent)
72 res = dlg.exec_() 71 res = dlg.exec_()
89 acceptedFailures should indicate the accepted certificate failures 88 acceptedFailures should indicate the accepted certificate failures
90 and save should be True, if subversion should save the certificate. 89 and save should be True, if subversion should save the certificate.
91 """ 90 """
92 from E5Gui import E5MessageBox 91 from E5Gui import E5MessageBox
93 92
94 cursor = QCursor(QApplication.overrideCursor()) 93 cursor = QApplication.overrideCursor()
95 if cursor is not None: 94 if cursor is not None:
96 QApplication.restoreOverrideCursor() 95 QApplication.restoreOverrideCursor()
97 parent = isinstance(self, QWidget) and self or None 96 parent = isinstance(self, QWidget) and self or None
98 msgBox = E5MessageBox.E5MessageBox( 97 msgBox = E5MessageBox.E5MessageBox(
99 E5MessageBox.Question, 98 E5MessageBox.Question,

eric ide

mercurial