[REVERT] revert commit 5210 chs@openerp.com-20140130150628-qqbno0nu8mp27b9u: bring back magic
bzr revid: chs@openerp.com-20140130162041-63wbcsq1udxw529f
This commit is contained in:
parent
7e6be99a63
commit
83bd83dc63
|
@ -963,6 +963,9 @@ class Root(object):
|
||||||
httprequest.session.logout()
|
httprequest.session.logout()
|
||||||
db = None
|
db = None
|
||||||
|
|
||||||
|
if not db:
|
||||||
|
httprequest.session.db = db_monodb(httprequest)
|
||||||
|
|
||||||
def setup_lang(self, httprequest):
|
def setup_lang(self, httprequest):
|
||||||
if not "lang" in httprequest.session.context:
|
if not "lang" in httprequest.session.context:
|
||||||
lang = httprequest.accept_languages.best or "en_US"
|
lang = httprequest.accept_languages.best or "en_US"
|
||||||
|
|
Loading…
Reference in New Issue