- Timestamp:
- 02/06/08 02:40:51 (10 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/session_centric/src/common/connection_handlers.py
r9299 r9307 50 50 from music_track_listener import MusicTrackListener 51 51 52 from common.stanza_session import EncryptedStanzaSession 52 # XXX interface leaking into the back end? 53 import session 53 54 54 55 STATUS_LIST = ['offline', 'connecting', 'online', 'chat', 'away', 'xa', 'dnd', … … 1714 1715 if treat_as: 1715 1716 mtype = treat_as 1716 self.dispatch('MSG', (frm, msgtxt, tim, encrypted, mtype, 1717 subject, chatstate, msg_id, composing_xep, user_nick, msghtml,1718 session, form_node))1717 1718 session.received(frm, msgtxt, tim, encrypted, mtype, subject, chatstate, 1719 msg_id, composing_xep, user_nick, msghtml, form_node) 1719 1720 # END messageCB 1720 1721 … … 1787 1788 1788 1789 def make_new_session(self, jid, thread_id = None, type = 'chat'): 1789 sess = EncryptedStanzaSession(self, common.xmpp.JID(jid), thread_id, type)1790 sess = session.ChatControlSession(self, common.xmpp.JID(jid), thread_id, type) 1790 1791 1791 1792 if not jid in self.sessions:
