[REVERT] revert commit 5210 chs@openerp.com-20140130150628-qqbno0nu8mp27b9u: bring back magic

bzr revid: chs@openerp.com-20140130162041-63wbcsq1udxw529f
This commit is contained in:
Christophe Simonis 2014-01-30 17:20:41 +01:00
parent 7e6be99a63
commit 83bd83dc63
1 changed files with 3 additions and 0 deletions

View File

@ -963,6 +963,9 @@ class Root(object):
httprequest.session.logout()
db = None
if not db:
httprequest.session.db = db_monodb(httprequest)
def setup_lang(self, httprequest):
if not "lang" in httprequest.session.context:
lang = httprequest.accept_languages.best or "en_US"