Commit 4e5d1c2a authored by Yusei Tahara's avatar Yusei Tahara

First page after login will be displayed without cookie so that tool must find...

First page after login will be displayed without cookie so that tool must find language setting from REQUEST itself.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23984 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6b09476e
...@@ -425,11 +425,12 @@ class WizardTool(BaseTool): ...@@ -425,11 +425,12 @@ class WizardTool(BaseTool):
parameter_dict['erp5_url'] = self.getPortalObject().absolute_url() parameter_dict['erp5_url'] = self.getPortalObject().absolute_url()
# add user preffered language # add user preffered language
REQUEST = getattr(self, 'REQUEST', None) REQUEST = getattr(self, 'REQUEST', None)
if REQUEST is None: configurator_user_preferred_language = 'en'
parameter_dict['user_preferred_language'] = 'en' if REQUEST is not None:
else: # language value will be in cookie or REQUEST itself.
parameter_dict['user_preferred_language'] = REQUEST.cookies.get('configurator_user_preferred_language', 'en') configurator_user_preferred_language = REQUEST.get('configurator_user_preferred_language', configurator_user_preferred_language)
parameter_dict['user_preferred_language'] = configurator_user_preferred_language
def _updateParameterDictWithFileUpload(self, parameter_dict): def _updateParameterDictWithFileUpload(self, parameter_dict):
"""Updates parameter_dict to replace file upload with their file content, """Updates parameter_dict to replace file upload with their file content,
encoded as XML-RPC Binary encoded as XML-RPC Binary
......
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