# HG changeset patch # User Atul Varma # Date 1240981824 25200 # Node ID aa0763886ec918ce8101068a8a687128605392e3 # Parent b0f802c4fafc6230dd8b804728c2221c2c87d251 open web chat now uses a separate channel for each conversation. diff -r b0f802c4fafc -r aa0763886ec9 openwebchat.py --- a/openwebchat.py Tue Apr 28 22:07:52 2009 -0700 +++ b/openwebchat.py Tue Apr 28 22:10:24 2009 -0700 @@ -151,13 +151,13 @@ msg = json.dumps(conv[i]) i += 1 yield self._until_multipart_part_sent(self.BOUNDARY, msg) - yield channels.until_message_received('new-message') + yield channels.until_message_received(conv_name) elif page == 'send': length = int(headers.getheader('Content-Length', 0)) msg = yield until_received(bytes = length) conv = self._convs.get(conv_name) conv.append(json.loads(msg)) - yield channels.until_message_sent('new-message', None) + yield channels.until_message_sent(conv_name, None) yield self._until_http_response_sent('sent.') elif page in ['', 'jquery.js', 'openwebchat.js', 'json2.js', 'openwebchat.css']: