[Erp5-dev] Zope's get_request()

Alexandre Boeglin alex at nexedi.com
Wed Nov 24 16:53:56 CET 2004


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



More information about the Erp5-dev mailing list