[FIX] pep8
parent
0db61caf20
commit
c5187e5abc
|
@ -23,6 +23,7 @@ from openerp.addons.web.controllers import main as web_main
|
||||||
|
|
||||||
old_init = WebRequest.init
|
old_init = WebRequest.init
|
||||||
|
|
||||||
|
|
||||||
def init(self, params):
|
def init(self, params):
|
||||||
old_init(self, params)
|
old_init(self, params)
|
||||||
if self.httprequest.authorization and not self.session._login:
|
if self.httprequest.authorization and not self.session._login:
|
||||||
|
@ -41,6 +42,7 @@ WebRequest.init = init
|
||||||
|
|
||||||
old_dispatch = JsonRequest.dispatch
|
old_dispatch = JsonRequest.dispatch
|
||||||
|
|
||||||
|
|
||||||
def dispatch(self, method):
|
def dispatch(self, method):
|
||||||
response = old_dispatch(self, method)
|
response = old_dispatch(self, method)
|
||||||
if method.im_func == web_main.Session.destroy.im_func:
|
if method.im_func == web_main.Session.destroy.im_func:
|
||||||
|
|
Loading…
Reference in New Issue