[Erp5-report] r26585 - in /erp5/trunk/products/ERP5/bootstrap/erp5_core: SkinTemplateItem/p...
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Apr 22 14:15:04 CEST 2009
Author: kazuhiko
Date: Wed Apr 22 14:15:00 2009
New Revision: 26585
URL: http://svn.erp5.org?rev=26585&view=rev
Log:
form_action should be respected as the edit method.
Modified:
erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_editRelation.xml
erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_editRelation.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_editRelation.xml?rev=26585&r1=26584&r2=26585&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_editRelation.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_editRelation.xml [utf8] Wed Apr 22 14:15:00 2009
@@ -90,9 +90,10 @@
del request_form[k]\n
\n
request.form.update(old_request)\n
-return context.Base_edit(form_id,\n
- selection_index=old_request.get(\'selection_index\', 0),\n
- selection_name=old_request.get(\'selection_name\', \'\'))\n
+edit_method = getattr(context, request_form.get(\'form_action\', \'Base_edit\'))\n
+return edit_method(form_id,\n
+ selection_index=old_request.get(\'selection_index\', 0),\n
+ selection_name=old_request.get(\'selection_name\', \'\'))\n
]]></string> </value>
@@ -165,6 +166,7 @@
<string>request_form</string>
<string>_getiter_</string>
<string>k</string>
+ <string>edit_method</string>
</tuple>
</value>
</item>
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision?rev=26585&r1=26584&r2=26585&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision [utf8] Wed Apr 22 14:15:00 2009
@@ -1,1 +1,1 @@
-1166
+1167
More information about the Erp5-report
mailing list