From 10f2dc5d2e093754a15840ec134c7b27cc295d2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Thu, 30 Mar 2017 04:33:40 +0000 Subject: [PATCH] system_event: Call inquiry type based method with the HTTP Exchange as first argument With this, the inquiry script can use the HTTP Exchange for processing. This is API breaking, but before this, users were abusing HTTPExchange_getFollowUpForXXX scripts or just not using this framework. --- .../erp5_system_event/HTTPExchange_setFollowUpAndInquiry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bt5/erp5_system_event/SkinTemplateItem/portal_skins/erp5_system_event/HTTPExchange_setFollowUpAndInquiry.py b/bt5/erp5_system_event/SkinTemplateItem/portal_skins/erp5_system_event/HTTPExchange_setFollowUpAndInquiry.py index 7099dbd10e..88e21c7bfc 100644 --- a/bt5/erp5_system_event/SkinTemplateItem/portal_skins/erp5_system_event/HTTPExchange_setFollowUpAndInquiry.py +++ b/bt5/erp5_system_event/SkinTemplateItem/portal_skins/erp5_system_event/HTTPExchange_setFollowUpAndInquiry.py @@ -15,4 +15,4 @@ while True: follow_up = getattr(context, 'HTTPExchange_getFollowUpFor' + codification)() if follow_up is not None: context.setFollowUpValue(follow_up) - follow_up.getTypeBasedMethod('inquiry')() + follow_up.getTypeBasedMethod('inquiry')(http_exchange_value=context) -- 2.30.9