Commit a4d10997 authored by Tomáš Peterka's avatar Tomáš Peterka

[hal_json_style] Cleanup usage of **kw

parent 7c93301a
......@@ -5,7 +5,7 @@ from Products.ERP5Type.Message import translateString
from Products.ERP5Type.Log import log, WARNING
portal = context.getPortalObject()
request = kw.get("REQUEST", None) or context.REQUEST
request = REQUEST or context.REQUEST
form = getattr(context, dialog_id)
......@@ -90,7 +90,6 @@ else:
message = request.get('portal_status_message')
if message is None:
message = translateString('Status changed.')
kw.clear() # useful ?
# Allow to redirect to another document
redirect_document_path = request.get('redirect_document_path', None)
......@@ -101,4 +100,4 @@ else:
redirect_document = context
return redirect_document.Base_redirect(form_id,
keep_items={'portal_status_message': message}, **kw)
keep_items={'portal_status_message': message})
......@@ -50,7 +50,7 @@
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>form_id, dialog_id, **kw</string> </value>
<value> <string>form_id, dialog_id, REQUEST=None, **kw</string> </value>
</item>
<item>
<key> <string>id</string> </key>
......
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