Commit 1885875b authored by Georgios Dagkakis's avatar Georgios Dagkakis

erp5_deferred_style: Allow passing previous_skin_selection

To be used so that it can work in new UI
parent 786e5f01
......@@ -10,13 +10,13 @@ priority = 3
user = portal.portal_membership.getAuthenticatedMember()
person_value = user.getUserValue()
if person_value is None:
portal.changeSkin(None)
portal.changeSkin(previous_skin_selection)
return context.Base_redirect('view', keep_items=dict(
portal_status_message=translateString(
"No person found for your user")))
if person_value.getDefaultEmailText('') in ('', None):
portal.changeSkin(None)
portal.changeSkin(previous_skin_selection)
return context.Base_redirect('view', keep_items=dict(
portal_status_message=translateString(
"You haven't defined your email address")))
......@@ -54,6 +54,6 @@ activity_context.activate(
context.activate(activity='SQLQueue', after_tag=tag).getTitle()
portal.changeSkin(None)
portal.changeSkin(previous_skin_selection)
return context.Base_redirect('view', keep_items=dict(
portal_status_message=translateString("Report Started")))
......@@ -50,7 +50,7 @@
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>deferred_style_dialog_method, **kw</string> </value>
<value> <string>deferred_style_dialog_method, previous_skin_selection=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