19 |
19 |
20 def __init__(self, realm, username, may_save, parent=None): |
20 def __init__(self, realm, username, may_save, parent=None): |
21 """ |
21 """ |
22 Constructor |
22 Constructor |
23 |
23 |
24 @param realm name of the realm of the requested credentials (string) |
24 @param realm name of the realm of the requested credentials |
25 @param username username as supplied by subversion (string) |
25 @type str |
|
26 @param username username as supplied by subversion |
|
27 @type str |
26 @param may_save flag indicating, that subversion is willing to save |
28 @param may_save flag indicating, that subversion is willing to save |
27 the answers returned (boolean) |
29 the answers returned |
28 @param parent reference to the parent widget (QWidget) |
30 @type bool |
|
31 @param parent reference to the parent widget |
|
32 @type QWidget |
29 """ |
33 """ |
30 super().__init__(parent) |
34 super().__init__(parent) |
31 self.setupUi(self) |
35 self.setupUi(self) |
32 |
36 |
33 self.realmLabel.setText( |
37 self.realmLabel.setText( |
43 |
47 |
44 def getData(self): |
48 def getData(self): |
45 """ |
49 """ |
46 Public method to retrieve the login data. |
50 Public method to retrieve the login data. |
47 |
51 |
48 @return tuple of three values (username, password, save) |
52 @return tuple containing the username, the password and a flag to save the data |
|
53 @rtype tuple of (str, str, bool) |
49 """ |
54 """ |
50 return ( |
55 return ( |
51 self.usernameEdit.text(), |
56 self.usernameEdit.text(), |
52 self.passwordEdit.text(), |
57 self.passwordEdit.text(), |
53 self.saveCheckBox.isChecked(), |
58 self.saveCheckBox.isChecked(), |