Alexandre Boeglin
2004-11-24 15:53:56 UTC
Hello,
In Zope 2.7, the get_request() function is "pushed" from the Localizer
Product to Global when it is running its __init__.py.
What happens sometimes (depending on the currently installed products)
is that the ERP5 Products are loaded prior to the Localizer Product,
and then, the get_request() function is not available from Global.
What we do now is "pulling" get_request() from Localizer to
ERP5Types.Utils, so from now, please use "from Products.ERP5Type.Utils
import get_request" to access it.
Does it sound okay ? Should it be reported to Zope devs ? Or is there a
better way ?
Regards,
Alex
In Zope 2.7, the get_request() function is "pushed" from the Localizer
Product to Global when it is running its __init__.py.
What happens sometimes (depending on the currently installed products)
is that the ERP5 Products are loaded prior to the Localizer Product,
and then, the get_request() function is not available from Global.
What we do now is "pulling" get_request() from Localizer to
ERP5Types.Utils, so from now, please use "from Products.ERP5Type.Utils
import get_request" to access it.
Does it sound okay ? Should it be reported to Zope devs ? Or is there a
better way ?
Regards,
Alex