Commit 05161f21 authored by Romain Courteaud's avatar Romain Courteaud

Check if current_app is already installed.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14867 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ea0d8dd4
......@@ -19,7 +19,10 @@ import Globals
original_get_request = Globals.get_request
def get_request():
if current_app is not None:
return current_app.REQUEST
else:
return None
Products.ERP5Type.Utils.get_request = get_request
Globals.get_request = get_request
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment