[Erp5-report] r9774 - /erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem...
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Sep 8 17:11:27 CEST 2006
Author: vincent
Date: Fri Sep 8 17:11:26 2006
New Revision: 9774
URL: http://svn.erp5.org?rev=9774&view=rev
Log:
Remove references to editable mode : there is now a better implementation of erp5_web which patches absolute_url for its own url generation needs.
Modified:
erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ERP5XhtmlStyle_doAction.xml
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ERP5XhtmlStyle_doAction.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ERP5XhtmlStyle_doAction.xml?rev=9774&r1=9773&r2=9774&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ERP5XhtmlStyle_doAction.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ERP5XhtmlStyle_doAction.xml Fri Sep 8 17:11:26 2006
@@ -71,17 +71,14 @@
<value> <string>portal = context.getPortalObject()\n
N_ = portal.Base_translateString\n
preserved_parameters={}\n
+request = context.REQUEST\n
\n
Base_doAction = select_action.split()\n
if len(Base_doAction) == 0:\n
return\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
\n
# If this is an object, a workflow or a folder, then jump to that view\n
@@ -97,11 +94,7 @@
container=context,\n
id=str(new_id))\n
preserved_parameters[\'portal_status_message\'] = N_("Object Created.")\n
- if not(ignore_layout) and context.getApplicableLayout():\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
+ 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
kw[\'selection_index\']=None\n
kw[\'selection_name\']=None\n
@@ -142,7 +135,7 @@
</item>
<item>
<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>
<key> <string>errors</string> </key>
@@ -162,29 +155,27 @@
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
- <value> <int>3</int> </value>
+ <value> <int>1</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>select_action</string>
- <string>selection_name</string>
- <string>ignore_layout</string>
<string>kw</string>
<string>_getattr_</string>
<string>context</string>
<string>portal</string>
<string>N_</string>
<string>preserved_parameters</string>
+ <string>request</string>
<string>Base_doAction</string>
<string>len</string>
<string>_getitem_</string>
<string>doAction0</string>
- <string>request</string>
- <string>_write_</string>
<string>_apply_</string>
<string>redirect_url</string>
+ <string>_write_</string>
<string>new_id</string>
<string>type_name</string>
<string>str</string>
@@ -206,10 +197,7 @@
<item>
<key> <string>func_defaults</string> </key>
<value>
- <tuple>
- <none/>
- <none/>
- </tuple>
+ <none/>
</value>
</item>
<item>
More information about the Erp5-report
mailing list