Helpviewer/Network/NetworkAccessManager.py

changeset 2059
52113e2f672a
parent 2050
585f6646bf50
child 2063
2227d4cc905e
equal deleted inserted replaced
2058:f3c50aa83266 2059:52113e2f672a
192 .format(reply.url().scheme(), reply.url().authority()) 192 .format(reply.url().scheme(), reply.url().authority())
193 realm = auth.realm() 193 realm = auth.realm()
194 if not realm and 'realm' in auth.options(): 194 if not realm and 'realm' in auth.options():
195 realm = auth.option("realm") 195 realm = auth.option("realm")
196 if realm: 196 if realm:
197 info = self.trUtf8("<b>Enter username and password for '{0}', "
198 "realm '{1}'</b>").format(urlRoot, realm)
199 else:
197 info = self.trUtf8("<b>Enter username and password for '{0}'</b>")\ 200 info = self.trUtf8("<b>Enter username and password for '{0}'</b>")\
198 .format(urlRoot) 201 .format(urlRoot)
199 else:
200 info = self.trUtf8("<b>Enter username and password for '{0}', "
201 "realm '{1}'</b>").format(urlRoot, realm)
202 202
203 dlg = AuthenticationDialog(info, auth.user(), 203 dlg = AuthenticationDialog(info, auth.user(),
204 Preferences.getUser("SavePasswords"), 204 Preferences.getUser("SavePasswords"),
205 Preferences.getUser("SavePasswords")) 205 Preferences.getUser("SavePasswords"))
206 if Preferences.getUser("SavePasswords"): 206 if Preferences.getUser("SavePasswords"):

eric ide

mercurial