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, |