diff src/server/server.py @ 974:4aa38c49bff7

pages: fixed use of request data in _on_data_post_redirect
author Goffi <goffi@goffi.org>
date Sat, 11 Nov 2017 17:16:46 +0100
parents c4e58c4dba75
children c8cafe316f6f
line wrap: on
line diff
--- a/src/server/server.py	Fri Nov 10 13:32:57 2017 +0100
+++ b/src/server/server.py	Sat Nov 11 17:16:46 2017 +0100
@@ -1687,8 +1687,9 @@
             ret = tuple(ret)
             raise NotImplementedError(_(u'iterable in on_data_post return value is not used yet'))
         session_data = self.host.getSessionData(request, session_iface.ISATSession)
-        if 'post_redirect_page' in request.data:
-            redirect_page_data = request.data['post_redirect_page']
+        request_data = self.getRData(request)
+        if 'post_redirect_page' in request_data:
+            redirect_page_data = request_data['post_redirect_page']
             if isinstance(redirect_page_data, tuple):
                 redirect_page = redirect_page_data[0]
                 redirect_page_args = redirect_page_data[1:]