Commit efce16cb authored by Jérome Perrin's avatar Jérome Perrin

configurator: reset configurator cookies when launching config from workfow

If user still has a cookie from a previous run this this will cause
problems.

This is a dirty workaround. Why configurator has to use cookies ?
parent bf2bb0be
......@@ -7,4 +7,12 @@ bc = context.business_configuration_module.newContent(
request.set("field_your_business_configuration", bc.getRelativeUrl())
# Configurator use a cookie to know what's the "current" configuration,
# we also need to initialize this cookie (yes, this is a ugly)
request.RESPONSE.setCookie(
'business_configuration_key',
bc.getRelativeUrl(),
path=portal.portal_configurator.absolute_url_path()
)
return portal.portal_configurator.login(REQUEST=request)
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