Topic History of: Can't get simple chat running Max. showing the last posts - (Last post first)
Author
Message
pier
you can remove
logger.info("val:"+val)
from my code,
hi,
pier
pier
with python 2.6 there is a bug in palabreServer.py
i made some changes in function formatMessage(self,nodeName,attrs,texte) and seems to work fine:
def formatMessage(self,nodeName,attrs,texte):
"""
Returns the XML string of the message
"""
xml = "<"+nodeName+" "
for p in attrs:
if p != "c" and p != "toclient" and p != "toroom" and p !="b" and p != "back":
# @TODO BUG with the DOUBLE QUOTE CHAR
# HOW DO I ESCAPE THIS ????
val = str(attrs[p])
logger.info('val:'+ val)
if val.find('"') and not val.find("'"):
xml += str(p)+'=''+val.replace('"','"')+'''
else:
xml += str(p)+"='"+val.replace('"','"')+"'"
xml += ">"+texte+"</"+nodeName+">"
return xml
yuppio
Hello!
I have weird problem - tried to get live demo chat and I can't send messages.
When I try to send, when I'm joined to XXX:
<m r="XXX" >Hello!</m>
All clients receive answer character by character, not full XML answer, but many requests, all containing only one character (also white-spaces). If combine those characters together, It seems like the message needed.
Anyone experienced something like that?
I tried to use demo chat provided in downloads section and also tried to write simple AS3 on my own - same result.
SORRY, website is currently mostly broken due to software changes on the server.
Hope to fix it soon ...