src/eric7/WebBrowser/Network/NetworkManager.py

branch
eric7
changeset 10683
779cda568acb
parent 10439
21c28b0f9e41
child 10806
2f6df822e3b9
equal deleted inserted replaced
10682:47be220abdaf 10683:779cda568acb
358 html = html.replace("@H1@", self.tr("Authentication required")) 358 html = html.replace("@H1@", self.tr("Authentication required"))
359 html = html.replace("@LI-1@", self.tr("Authentication is required to access:")) 359 html = html.replace("@LI-1@", self.tr("Authentication is required to access:"))
360 html = html.replace("@LI-2@", '<a href="{0}">{0}</a>'.format(url.toString())) 360 html = html.replace("@LI-2@", '<a href="{0}">{0}</a>'.format(url.toString()))
361 page.setHtml(html, url) 361 page.setHtml(html, url)
362 362
363 def proxyAuthentication(self, requestUrl, auth, proxyHost): # noqa: U100 363 def proxyAuthentication(self, _requestUrl, auth, _proxyHost):
364 """ 364 """
365 Public slot to handle a proxy authentication request. 365 Public slot to handle a proxy authentication request.
366 366
367 @param requestUrl requested URL 367 @param _requestUrl requested URL (unused)
368 @type QUrl 368 @type QUrl
369 @param auth reference to the authenticator object 369 @param auth reference to the authenticator object
370 @type QAuthenticator 370 @type QAuthenticator
371 @param proxyHost name of the proxy host 371 @param _proxyHost name of the proxy host (unused)
372 @type str 372 @type str
373 """ 373 """
374 proxy = QNetworkProxy.applicationProxy() 374 proxy = QNetworkProxy.applicationProxy()
375 if proxy.user() and proxy.password(): 375 if proxy.user() and proxy.password():
376 auth.setUser(proxy.user()) 376 auth.setUser(proxy.user())

eric ide

mercurial