(self, conn)
加入一条连接
        @param _conn: Conn object
加入一条连接
加入一条连接
def addConnection(self, conn):
        '''加入一条连接
        @param _conn: Conn object
        '''
        _conn = Connection(conn)
        if self._connections.has_key(_conn.id):
            raise Exception("系统记录冲突")
        self._connections[_conn.id] = _conn
def addConnection ( self , conn ) : _conn = Connection ( conn ) if self . _connections . has_key ( _conn . id ) : raise Exception ( "系统记录冲突") self . _connections [ _conn . id ] = _conn