260 if len(addressEntries) > 0: |
260 if len(addressEntries) > 0: |
261 for addressEntry in addressEntries: |
261 for addressEntry in addressEntries: |
262 if addressEntry.ip().toString().lower() == \ |
262 if addressEntry.ip().toString().lower() == \ |
263 address.lower(): |
263 address.lower(): |
264 return networkInterface.humanReadableName(), \ |
264 return networkInterface.humanReadableName(), \ |
265 networkInterface.index() |
265 networkInterface.index() |
266 |
266 |
267 return "", 0 |
267 return "", 0 |
268 |
268 |
269 def preferencesChanged(self): |
269 def preferencesChanged(self): |
270 """ |
270 """ |
308 except ValueError: |
308 except ValueError: |
309 pass # it is not in the list |
309 pass # it is not in the list |
310 |
310 |
311 if shellOnly: |
311 if shellOnly: |
312 languages = \ |
312 languages = \ |
313 [lang for lang in languages \ |
313 [lang for lang in languages |
314 if self.__clientCapabilities[lang] & |
314 if self.__clientCapabilities[lang] & |
315 DebugClientCapabilities.HasShell] |
315 DebugClientCapabilities.HasShell] |
316 |
316 |
317 return languages[:] |
317 return languages[:] |
318 |
318 |
319 def getExtensions(self, language): |
319 def getExtensions(self, language): |
654 res = E5MessageBox.yesNo( |
654 res = E5MessageBox.yesNo( |
655 None, |
655 None, |
656 self.trUtf8("Connection from illegal host"), |
656 self.trUtf8("Connection from illegal host"), |
657 self.trUtf8( |
657 self.trUtf8( |
658 """<p>A connection was attempted by the illegal host""" |
658 """<p>A connection was attempted by the illegal host""" |
659 """ <b>{0}</b>. Accept this connection?</p>""")\ |
659 """ <b>{0}</b>. Accept this connection?</p>""") |
660 .format(peerAddress), |
660 .format(peerAddress), |
661 icon=E5MessageBox.Warning) |
661 icon=E5MessageBox.Warning) |
662 if not res: |
662 if not res: |
663 sock.abort() |
663 sock.abort() |
664 return |
664 return |
665 else: |
665 else: |