def nameop_put_collision( cls, collisions, nameop ):
        """
        Record a nameop as collided with another nameop in this block.
        """
        # these are supposed to have been put here by nameop_set_collided
        history_id_key = nameop.get('__collided_history_id_key__', None)
        history_id = nameop.get('__collided_history_id__', None)

        try:
            assert cls.nameop_is_collided( nameop ), "Nameop not collided"
            assert history_id_key is not None, "Nameop missing collision info"
            assert history_id is not None, "Nameop missing collision info"
        except Exception, e:
            log.exception(e)
            log.error("FATAL: BUG: bad collision info")
            os.abort()

        if not collisions.has_key(history_id_key):
            collisions[history_id_key] = [history_id]
        else:
            collisions[history_id_key].append( history_id )
def nameop_put_collision ( cls , collisions , nameop ) : history_id_key = nameop . get ( '__collided_history_id_key__' , None ) history_id = nameop . get ( '__collided_history_id__' , None ) try : assert cls . nameop_is_collided ( nameop ) , "Nameop not collided" assert history_id_key is not None , "Nameop missing collision info" assert history_id is not None , "Nameop missing collision info" except Exception , e : log . exception ( e ) log . error ( "FATAL: BUG: bad collision info" ) os . abort ( ) if not collisions . has_key ( history_id_key ) : collisions [ history_id_key ] = [ history_id ] else : collisions [ history_id_key ] . append ( history_id )
Record a nameop as collided with another nameop in this block.