def METHOD_NAME(self):
    h = rhnSQL.prepare(self._query_get_channels)
    h.execute()
    ret = {}
    while 1:
        row = h.fetchone_dict()
        if not row:
            break
        ret[row['label']] = row['id']
    return ret