241 if len(addressEntries) > 0: |
241 if len(addressEntries) > 0: |
242 for addressEntry in addressEntries: |
242 for addressEntry in addressEntries: |
243 if addressEntry.ip().toString().lower() == \ |
243 if addressEntry.ip().toString().lower() == \ |
244 address.lower(): |
244 address.lower(): |
245 return networkInterface.humanReadableName(), \ |
245 return networkInterface.humanReadableName(), \ |
246 networkInterface.index() |
246 networkInterface.index() |
247 |
247 |
248 return "", 0 |
248 return "", 0 |
249 |
249 |
250 def preferencesChanged(self): |
250 def preferencesChanged(self): |
251 """ |
251 """ |
289 except ValueError: |
289 except ValueError: |
290 pass # it is not in the list |
290 pass # it is not in the list |
291 |
291 |
292 if shellOnly: |
292 if shellOnly: |
293 languages = \ |
293 languages = \ |
294 [lang for lang in languages \ |
294 [lang for lang in languages |
295 if self.__clientCapabilities[lang] & |
295 if self.__clientCapabilities[lang] & |
296 DebugClientCapabilities.HasShell] |
296 DebugClientCapabilities.HasShell] |
297 |
297 |
298 return languages[:] |
298 return languages[:] |
299 |
299 |
300 def getExtensions(self, language): |
300 def getExtensions(self, language): |
635 res = E5MessageBox.yesNo( |
635 res = E5MessageBox.yesNo( |
636 None, |
636 None, |
637 self.trUtf8("Connection from illegal host"), |
637 self.trUtf8("Connection from illegal host"), |
638 self.trUtf8( |
638 self.trUtf8( |
639 """<p>A connection was attempted by the illegal host""" |
639 """<p>A connection was attempted by the illegal host""" |
640 """ <b>{0}</b>. Accept this connection?</p>""")\ |
640 """ <b>{0}</b>. Accept this connection?</p>""") |
641 .format(peerAddress), |
641 .format(peerAddress), |
642 icon=E5MessageBox.Warning) |
642 icon=E5MessageBox.Warning) |
643 if not res: |
643 if not res: |
644 sock.abort() |
644 sock.abort() |
645 return |
645 return |
646 else: |
646 else: |