CMFActivity: Always set zope.globalrequest WIP
ERP5 uses a mix of context.REQUEST and Products.ERP5Type.Global.get_request(), which now uses zope.globalrequest.getRequest(). CMFActivity reconstruct the original request before executing activity, so that the activity is executed with a request equivalent to the request at the time where the method was activated. For this, context.REQUEST was properly restored, but get_request()/globalrequest was only restored when the REQUEST had some ACCEPT_LANGUAGE header, so that it replays the language negociation for Localizer. With browser requests, I guess every browser pass an ACCEPT_LANGUAGE header, but within unit tests such header is not present. (TODO: finish this message)
Status | Job ID | Name | Coverage | ||||||
---|---|---|---|---|---|---|---|---|---|
External | |||||||||
failed |
#222094
external
|
PSA-BUCE-ERP5-Master.Jerome |
00:28:15
|
||||||
failed |
#216044
external
retried
|
PSA-BUCE-ERP5-Master.Jerome |
00:22:17
|
||||||
passed |
#216056
external
retried
|
PSA-BUCE-ERP5-Master.Jerome |
00:35:50
|
||||||
passed |
#218437
external
retried
|
PSA-BUCE-ERP5-Master.Jerome |
00:55:25
|
||||||