Commit 87710acc authored by Alexandre Boeglin's avatar Alexandre Boeglin

Localizer is not always loaded prior to ERP5 products, thus, as Localizer is...

Localizer is not always loaded prior to ERP5 products, thus, as Localizer is supposed to patch Global to add get_request to it, we prefer to redefine get_request inside ERP5Type/Utils, to avoid the case when Global wasn't patched and get_request is not available.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1924 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d2ff946c
......@@ -977,6 +977,15 @@ def setDefaultProperties(klass, object=None):
raise TypeError, '"%s" is illegal type for propertysheet' % \
prop['type']
##########################################
# Localizer is not always loaded prior to ERP5 products,
# thus, as Localizer is supposed to patch Global to add get_request to it,
# 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
#####################################################
# 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