def _get_locale(self):
        if self._locale is not None:
            return self._locale
        rv = self.session.get('locale')
        if rv is not None:
            rv = Locale.parse(rv)
            # we could trust the cookie here because it's signed, but we do not
            # because the configuration could have changed in the meantime.
            if not has_section(rv):
                rv = None
        if rv is None:
            rv = select_locale(self.accept_languages)
        self._locale = rv
        return rv
Compose the needed text for a SQL SET, parameter 'data' is a pair tuple (A,B),
dataset/ETHPy150Open mitsuhiko/solace/solace/application.py/Request._get_locale--crossover with--dataset/ETHPy150Open nfvlabs/openmano/openmano/nfvo_db.py/nfvo_db.__tuple2db_format_set