Show
Ignore:
Timestamp:
06/30/08 23:27:04 (5 months ago)
Author:
steve-e
Message:

Commit two new assert statements in roster window.

We are not absolutely sure why some things are happening. Maybe that will help tracing the strange bugs.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/roster_window.py

    r9856 r9868  
    389389 
    390390                assert len(added_iters), '%s has not been added to roster!' % contact.jid 
     391                for titer in added_iters: 
     392                        assert self.model[titer][C_JID] == contact.jid and \ 
     393                                self.model[titer][C_ACCOUNT] == account, \ 
     394                                "Iters invalidated for %s" % contact.jid 
    391395                return added_iters 
    392396 
     
    425429                        # Remove us and empty groups from the model 
    426430                        for i in iters: 
     431                                assert self.model[i][C_JID] == contact.jid and \ 
     432                                        self.model[i][C_ACCOUNT] == account, \ 
     433                                        "Invalidated iters of %s" % contact.jid 
    427434                                parent_i = self.model.iter_parent(i) 
    428435                                if parent_type == 'group' and \ 
     
    11601167        def setup_and_draw_roster(self): 
    11611168                '''create new empty model and draw roster''' 
     1169                self.modelfilter = None 
    11621170                #(icon, name, type, jid, account, editable, avatar_pixbuf, padlock_pixbuf) 
    11631171                self.model = gtk.TreeStore(gtk.Image, str, str, str, str, gtk.gdk.Pixbuf,