Add long message splitting in crosslink

This commit is contained in:
Maurizio Porrato 2010-09-04 16:48:19 +02:00
부모 546c723995
커밋 79a7fd832d
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제

파일 보기

@ -61,8 +61,11 @@ class FRNCrosslinkClient(FRNClient):
ss,
c['on'],
))
reply = '<br/>'.join(cl)
self.sendTextMessage(client, reply)
sm = [cl[i*15:(i+1)*15]
for i in range((len(cl)+14)/15)]
for m in sm:
reply = '<br>'.join(m)
self.sendTextMessage(client, reply)
def decodeTX(self, my_id):
log.msg("Got TX ack for %s" % self.user.ON)