From fdc08bd64e4b141376f4747b01c05662fcb05484 Mon Sep 17 00:00:00 2001 From: niv-openerp Date: Tue, 18 Jun 2013 18:20:33 +0200 Subject: [PATCH] wip bzr revid: nicolas.vanhoren@openerp.com-20130618162033-pgl073m9g91rgtxg --- addons/web/http.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/web/http.py b/addons/web/http.py index 980acfe9509..1bb03a60093 100644 --- a/addons/web/http.py +++ b/addons/web/http.py @@ -680,8 +680,6 @@ class Root(object): httprequest.parameter_storage_class = werkzeug.datastructures.ImmutableDict httprequest.app = self - handler = self.find_handler(httprequest.path) - sid = httprequest.cookies.get('sid') if not sid: sid = httprequest.args.get('sid') @@ -689,6 +687,8 @@ class Root(object): session_gc(self.session_store) with session_context(httprequest, self.session_store, self.session_lock, sid) as session: + handler = self.find_handler(httprequest.path) + result = handler(httprequest) if isinstance(result, basestring):