src/eric7/WebBrowser/JavaScript/PasswordManagerJsObject.py

branch
eric7
changeset 9221
bf71ee032bb4
parent 9209
b99e7fd55fd3
child 9413
80c06d472826
equal deleted inserted replaced
9220:e9e7eca7efee 9221:bf71ee032bb4
12 12
13 class PasswordManagerJsObject(QObject): 13 class PasswordManagerJsObject(QObject):
14 """ 14 """
15 Class implementing the Python side for calling the password manager. 15 Class implementing the Python side for calling the password manager.
16 """ 16 """
17
17 def __init__(self, parent=None): 18 def __init__(self, parent=None):
18 """ 19 """
19 Constructor 20 Constructor
20 21
21 @param parent reference to the parent object 22 @param parent reference to the parent object
22 @type ExternalJsObject 23 @type ExternalJsObject
23 """ 24 """
24 super().__init__(parent) 25 super().__init__(parent)
25 26
26 self.__external = parent 27 self.__external = parent
27 28
28 @pyqtSlot(str, str, str, QByteArray) 29 @pyqtSlot(str, str, str, QByteArray)
29 def formSubmitted(self, urlStr, userName, password, data): 30 def formSubmitted(self, urlStr, userName, password, data):
30 """ 31 """
31 Public slot passing form data to the password manager. 32 Public slot passing form data to the password manager.
32 33
33 @param urlStr form submission URL 34 @param urlStr form submission URL
34 @type str 35 @type str
35 @param userName name of the user 36 @param userName name of the user
36 @type str 37 @type str
37 @param password user password 38 @param password user password
38 @type str 39 @type str
39 @param data data to be submitted 40 @param data data to be submitted
40 @type QByteArray 41 @type QByteArray
41 """ 42 """
42 from WebBrowser.WebBrowserWindow import WebBrowserWindow 43 from WebBrowser.WebBrowserWindow import WebBrowserWindow
44
43 WebBrowserWindow.passwordManager().formSubmitted( 45 WebBrowserWindow.passwordManager().formSubmitted(
44 urlStr, userName, password, data, self.__external.page()) 46 urlStr, userName, password, data, self.__external.page()
47 )

eric ide

mercurial