Commit f94cb234 authored by Vincent Pelletier's avatar Vincent Pelletier

Remove references to editable mode : there is now a better implementation of...

Remove references to editable mode : there is now a better implementation of erp5_web which patches absolute_url for its own url generation needs.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9774 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5a5ffcaa
...@@ -71,17 +71,14 @@ ...@@ -71,17 +71,14 @@
<value> <string>portal = context.getPortalObject()\n <value> <string>portal = context.getPortalObject()\n
N_ = portal.Base_translateString\n N_ = portal.Base_translateString\n
preserved_parameters={}\n preserved_parameters={}\n
request = context.REQUEST\n
\n \n
Base_doAction = select_action.split()\n Base_doAction = select_action.split()\n
if len(Base_doAction) == 0:\n if len(Base_doAction) == 0:\n
return\n return\n
doAction0 = Base_doAction[0]\n doAction0 = Base_doAction[0]\n
request = context.REQUEST\n
\n
# Reinject parameters in kw\n
kw[\'selection_name\']=selection_name\n
kw[\'ignore_layout\']=ignore_layout\n
\n \n
kw.update(request.form)\n
context.ERP5XhtmlStyle_prepareAction(**kw)\n context.ERP5XhtmlStyle_prepareAction(**kw)\n
\n \n
# If this is an object, a workflow or a folder, then jump to that view\n # If this is an object, a workflow or a folder, then jump to that view\n
...@@ -97,11 +94,7 @@ elif doAction0 == \'add\':\n ...@@ -97,11 +94,7 @@ elif doAction0 == \'add\':\n
container=context,\n container=context,\n
id=str(new_id))\n id=str(new_id))\n
preserved_parameters[\'portal_status_message\'] = N_("Object Created.")\n preserved_parameters[\'portal_status_message\'] = N_("Object Created.")\n
if not(ignore_layout) and context.getApplicableLayout():\n redirect_url = \'%s/view\' % (new_content.absolute_url(), )\n
kw[\'editable_mode\'] = 1\n
redirect_url = \'%s/view\' % (new_content.WebSite_getDocumentPhysicalPath(), )\n
else:\n
redirect_url = \'%s/view\' % (new_content.absolute_url(), )\n
# The created object is not a part of the selection, so prevent from displaying the selection navigation controls\n # The created object is not a part of the selection, so prevent from displaying the selection navigation controls\n
kw[\'selection_index\']=None\n kw[\'selection_index\']=None\n
kw[\'selection_name\']=None\n kw[\'selection_name\']=None\n
...@@ -142,7 +135,7 @@ return context.ERP5XhtmlStyle_redirect(redirect_url, keep_items=preserved_parame ...@@ -142,7 +135,7 @@ return context.ERP5XhtmlStyle_redirect(redirect_url, keep_items=preserved_parame
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>select_action, selection_name=None, ignore_layout=None, **kw</string> </value> <value> <string>select_action, **kw</string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -162,29 +155,27 @@ return context.ERP5XhtmlStyle_redirect(redirect_url, keep_items=preserved_parame ...@@ -162,29 +155,27 @@ return context.ERP5XhtmlStyle_redirect(redirect_url, keep_items=preserved_parame
<dictionary> <dictionary>
<item> <item>
<key> <string>co_argcount</string> </key> <key> <string>co_argcount</string> </key>
<value> <int>3</int> </value> <value> <int>1</int> </value>
</item> </item>
<item> <item>
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
<value> <value>
<tuple> <tuple>
<string>select_action</string> <string>select_action</string>
<string>selection_name</string>
<string>ignore_layout</string>
<string>kw</string> <string>kw</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>portal</string> <string>portal</string>
<string>N_</string> <string>N_</string>
<string>preserved_parameters</string> <string>preserved_parameters</string>
<string>request</string>
<string>Base_doAction</string> <string>Base_doAction</string>
<string>len</string> <string>len</string>
<string>_getitem_</string> <string>_getitem_</string>
<string>doAction0</string> <string>doAction0</string>
<string>request</string>
<string>_write_</string>
<string>_apply_</string> <string>_apply_</string>
<string>redirect_url</string> <string>redirect_url</string>
<string>_write_</string>
<string>new_id</string> <string>new_id</string>
<string>type_name</string> <string>type_name</string>
<string>str</string> <string>str</string>
...@@ -206,10 +197,7 @@ return context.ERP5XhtmlStyle_redirect(redirect_url, keep_items=preserved_parame ...@@ -206,10 +197,7 @@ return context.ERP5XhtmlStyle_redirect(redirect_url, keep_items=preserved_parame
<item> <item>
<key> <string>func_defaults</string> </key> <key> <string>func_defaults</string> </key>
<value> <value>
<tuple> <none/>
<none/>
<none/>
</tuple>
</value> </value>
</item> </item>
<item> <item>
......
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