def save_cookies(self, ignore_discard=True, ignore_expires=True):
        if not isinstance(self.cookies, cookielib.FileCookieJar):
            m = 'Cookies must be a cookielib.FileCookieJar object to be saved.'
            raise APIError(m)
        self.cookies.save(ignore_discard=ignore_discard,
                          ignore_expires=ignore_expires)
A helper method for get_ordering and get_distinct. This method will
dataset/ETHPy150Open shichao-an/115wangpan/u115/api.py/API.save_cookies--crossover with--dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/Django-1.6.10/django/db/models/sql/compiler.py/SQLCompiler._setup_joins