Commit e6b2e24e authored by Vincent Pelletier's avatar Vincent Pelletier

Added erp5_web support (respect paths when there is an applicable context).


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6295 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e8b053d4
......@@ -84,16 +84,12 @@ if dialog_method == \'Base_edit\':\n
)\n
#Exceptions for Workflow\n
if dialog_method == \'Workflow_statusModify\':\n
return context.Workflow_statusModify( form_id=form_id\n
value = context.Workflow_statusModify( form_id=form_id\n
, dialog_id=dialog_id\n
)\n
#Exceptions for Mass Workflow Modifications\n
if dialog_method == \'Folder_modifyWorkflowStatus\':\n
return context.Folder_modifyWorkflowStatus( form_id = form_id\n
, dialog_id = dialog_id\n
, selection_name = selection_name\n
)\n
#Exceptions for UI configurations\n
if not(getattr(request, \'ignore_layout\', 0)) and context.getApplicableLayout() :\n
value = request.RESPONSE.redirect(context.WebSite_getDocumentPhysicalPath())\n
return value\n
if dialog_method == \'Base_configureUI\':\n
return context.Base_configureUI( form_id=form_id\n
, selection_name=selection_name\n
......
......@@ -268,7 +268,7 @@ except FormValidationError, validation_errors:\n
else:\n
message = N_("Data+Updated.")\n
if not(ignore_layout) and context.getApplicableLayout() :\n
redirect_url = \'%s?editable_mode=1\' % context.WebSite_getDocumentUrl()\n
redirect_url = \'%s?editable_mode=1\' % context.REQUEST.URL1\n
elif not selection_index:\n
redirect_url = \'%s/%s?portal_status_message=%s\' % ( context.absolute_url()\n
, form_id\n
......
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