A source/configurations/clients_informations.xml +1 -0
@@ 0,0 1,1 @@
+<?xml version="1.0" ?><clients><client><name>bob</name><password>dfe71540d0c478f2e15a07b787858a74e7164aea</password><ontology>ontoBob</ontology><pubkey>6209198068988156963035948864904707487174724412411457281853599616394141480531-18623866399548221657245284155104937864801254277315683603623659442952500738421</pubkey></client><client><name>alice</name><password>92ef57ba40706594b46425705e989cbc256d9724</password><ontology>ontoAlice</ontology><pubkey>16783446989084582176263320476322261377039425521549863113434173242527203367805-17876812135979447517296769198592571485654434916187385738481158828129606382771</pubkey></client></clients>
No newline at end of file
M source/simpleGui.py +6 -6
@@ 399,7 399,7 @@ class SimpleGui(object):
"""
if ontology == 'None' and pubkey == 'None':
self.show_info(client + ' is not registered.\n' + \
- 'You would not be able to communicate with ' + client + '.')
+ 'You would not be able to send message to ' + client + '.')
return
# Construct the RSA key of the new interlocutor
@@ 434,7 434,7 @@ class SimpleGui(object):
"""
Send the message to the list of receivers (interlocutors).
"""
- message = self.message_to_send.get(0.0, END)
+ message = str(self.message_to_send.get(0.0, END))
self.message_to_send.delete(1.0, END)
if len(message) <= 1:
@@ 484,10 484,10 @@ class SimpleGui(object):
# success if the client is already registered.
self.connect_to_client(client = name)
- # If the new client is not registered to the
- # authentication agent.
- if name in self.client_agent.receiver.keys():
- self.update_conversation_zone(dec_message)
+ # Display the message even if the connection
+ # failed. Answer will not be possible in that
+ # case.
+ self.update_conversation_zone(dec_message)
def update_conversation_zone(self, msg):
"""