Cooperation/Connection.py

changeset 3020
542e97d4ecb3
parent 2986
cd4e2cab7eb2
child 3021
801289962f4e
equal deleted inserted replaced
3019:7912530a33e2 3020:542e97d4ecb3
206 206
207 if self.__serverPort != self.peerPort() and \ 207 if self.__serverPort != self.peerPort() and \
208 not Preferences.getCooperation("AutoAcceptConnections"): 208 not Preferences.getCooperation("AutoAcceptConnections"):
209 # don't ask for reverse connections or 209 # don't ask for reverse connections or
210 # if we shall accept automatically 210 # if we shall accept automatically
211 res = E5MessageBox.yesNo(None, 211 res = E5MessageBox.yesNo(
212 None,
212 self.trUtf8("New Connection"), 213 self.trUtf8("New Connection"),
213 self.trUtf8("""<p>Accept connection from """ 214 self.trUtf8("""<p>Accept connection from """
214 """<strong>{0}@{1}</strong>?</p>""").format( 215 """<strong>{0}@{1}</strong>?</p>""").format(
215 user, hostInfo.hostName()), 216 user, hostInfo.hostName()),
216 yesDefault=True) 217 yesDefault=True)

eric ide

mercurial