Commit 3771fd85 authored by Yoshinori Okuji's avatar Yoshinori Okuji

In Localizer 1.1.0, get_request is defined in iHotfix.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2945 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 43a65e16
......@@ -1065,8 +1065,12 @@ def setDefaultProperties(klass, object=None):
# we prefer to redefine get_request inside ERP5Type/Utils,
# to avoid the case when Global wasn't patched and get_request is not available.
##########################################
import Products.Localizer
get_request = Products.Localizer.get_request
try:
import Products.iHotfix
get_request = Products.iHotfix.get_request
except:
import Products.Localizer
get_request = Products.Localizer.get_request
#####################################################
# Accessor initialization
......
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