comparison 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
comparison
equal deleted inserted replaced
973:2e75dc986e03 974:4aa38c49bff7
1685 ret = (ret,) 1685 ret = (ret,)
1686 else: 1686 else:
1687 ret = tuple(ret) 1687 ret = tuple(ret)
1688 raise NotImplementedError(_(u'iterable in on_data_post return value is not used yet')) 1688 raise NotImplementedError(_(u'iterable in on_data_post return value is not used yet'))
1689 session_data = self.host.getSessionData(request, session_iface.ISATSession) 1689 session_data = self.host.getSessionData(request, session_iface.ISATSession)
1690 if 'post_redirect_page' in request.data: 1690 request_data = self.getRData(request)
1691 redirect_page_data = request.data['post_redirect_page'] 1691 if 'post_redirect_page' in request_data:
1692 redirect_page_data = request_data['post_redirect_page']
1692 if isinstance(redirect_page_data, tuple): 1693 if isinstance(redirect_page_data, tuple):
1693 redirect_page = redirect_page_data[0] 1694 redirect_page = redirect_page_data[0]
1694 redirect_page_args = redirect_page_data[1:] 1695 redirect_page_args = redirect_page_data[1:]
1695 redirect_uri = redirect_page.getURL(*redirect_page_args) 1696 redirect_uri = redirect_page.getURL(*redirect_page_args)
1696 else: 1697 else: