Commit 4f19c7c3 authored by Jérome Perrin's avatar Jérome Perrin Committed by Gabriel Monnerat

use Base_redirect

parent cf2805e6
......@@ -74,14 +74,12 @@ if dms_module is not None:\n
if len(uids) == 1:\n
message = Base_translateString(\'${portal_type} created successfully.\',\n
mapping={\'portal_type\':document.getTranslatedPortalType()})\n
return context.REQUEST.RESPONSE.redirect(\n
\'%s/view?portal_status_message=%s\' % (document.absolute_url(), message)\n
)\n
return document.Base_redirect(keep_items=dict(portal_status_message=message))\n
\n
message = Base_translateString(\'${count} documents created successfully.\',\n
mapping={\'count\':len(uids)})\n
return context.REQUEST.RESPONSE.redirect(\n
\'%s?portal_status_message=%s\' % (dms_module.absolute_url(), message)\n
)\n
\n
return context.Base_redirect(keep_items=dict(portal_status_message=message))\n
</string> </value>
</item>
<item>
......
624
625
\ No newline at end of file
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