Changeset 9880

Show
Ignore:
Timestamp:
07/04/08 01:19:44 (3 months ago)
Author:
bct
Message:

sesison-related TB fixes

Location:
trunk/src
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/gajim.py

    r9858 r9880  
    21352135                                        contact = highest_contact 
    21362136 
    2137                                 if not session: 
    2138                                         session = gajim.connections[account].get_or_create_session(fjid, None) 
    2139  
    2140                                 self.new_chat(contact, account, resource = resource, session = session) 
    2141                                 ctrl = session.control 
     2137                                ctrl = self.new_chat(contact, account, resource = resource, session = session) 
    21422138 
    21432139                                gajim.last_message_time[account][jid] = 0 # long time ago 
  • trunk/src/groupchat_control.py

    r9847 r9880  
    4444from common import gajim 
    4545from common import helpers 
    46 from common.stanza_session import StanzaSession 
    4746 
    4847from chat_control import ChatControl 
     
    223222                self.new_nick = '' 
    224223                self.name = self.room_jid.split('@')[0] 
    225  
    226                 self.session = StanzaSession(gajim.connections[self.account], 
    227                         self.room_jid, 'gc', 'gc') 
    228224 
    229225                compact_view = gajim.config.get('compact_view') 
  • trunk/src/session.py

    r9863 r9880  
    9797                                                tim=tim, subject=subject) 
    9898                        except exceptions.PysqliteOperationalError, e: 
    99                                 gajim.dispatch('ERROR', (_('Disk WriteError'), str(e))) 
     99                                self.conn.dispatch('ERROR', (_('Disk WriteError'), str(e))) 
    100100 
    101101                treat_as = gajim.config.get('treat_incoming_messages') 
     
    342342                        # bob responds 
    343343                        if form.getType() == 'form' and 'security' in form.asDict(): 
    344                                 def continue_with_negotiation(*args): 
    345                                         if len(args): 
    346                                                 self.dialog.destroy() 
    347  
     344                                def continue_with_negotiation(): 
    348345                                        # we don't support 3-message negotiation as the responder 
    349346                                        if 'dhkeys' in form.asDict():