[Erp5-report] r18855 - in /erp5/trunk/bt5/erp5_web: SkinTemplateItem/portal_skins/erp5_web/...
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Jan 25 14:17:01 CET 2008
Author: romain
Date: Fri Jan 25 14:17:01 2008
New Revision: 18855
URL: http://svn.erp5.org?rev=18855&view=rev
Log:
Set parameter is_web_mode to 1 in the REQUEST before calling Base_edit.
This is usefull when fields use 'is_web_mode' in a TALES expression
Modified:
erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/Base_editAndEditAsWeb.xml
erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/Base_editAndViewAsWeb.xml
erp5/trunk/bt5/erp5_web/bt/revision
Modified: erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/Base_editAndEditAsWeb.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/Base_editAndEditAsWeb.xml?rev=18855&r1=18854&r2=18855&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/Base_editAndEditAsWeb.xml (original)
+++ erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/Base_editAndEditAsWeb.xml Fri Jan 25 14:17:01 2008
@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
- <tuple>
- <string>Products.PythonScripts.PythonScript</string>
- <string>PythonScript</string>
- </tuple>
- <none/>
+ <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
+ <tuple/>
</tuple>
</pickle>
<pickle>
@@ -73,9 +70,15 @@
The edit_document_url is used to define the URL to return to\n
after editing the document.\n
"""\n
+\n
+# This is required in case of field using \'is_web_mode\' in TALES expression\n
+context.REQUEST.set(\'is_web_mode\', 1)\n
+\n
# Retrieve the edit action\n
edit_method = getattr(context, form_action)\n
-return edit_method(form_id, editable_mode=editable_mode, ignore_layout=ignore_layout, **kw)\n
+return edit_method(form_id, editable_mode=editable_mode, \n
+ ignore_layout=ignore_layout, \n
+ **kw)\n
</string> </value>
</item>
<item>
@@ -130,8 +133,9 @@
<string>editable_mode</string>
<string>ignore_layout</string>
<string>kw</string>
+ <string>_getattr_</string>
+ <string>context</string>
<string>getattr</string>
- <string>context</string>
<string>edit_method</string>
<string>_apply_</string>
</tuple>
Modified: erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/Base_editAndViewAsWeb.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/Base_editAndViewAsWeb.xml?rev=18855&r1=18854&r2=18855&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/Base_editAndViewAsWeb.xml (original)
+++ erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/Base_editAndViewAsWeb.xml Fri Jan 25 14:17:01 2008
@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
- <tuple>
- <string>Products.PythonScripts.PythonScript</string>
- <string>PythonScript</string>
- </tuple>
- <none/>
+ <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
+ <tuple/>
</tuple>
</pickle>
<pickle>
@@ -74,6 +71,10 @@
The view_document_url is used to define the URL to return to\n
after editing the document.\n
"""\n
+\n
+# This is required in case of field using \'is_web_mode\' in TALES expression\n
+context.REQUEST.set(\'is_web_mode\', 1)\n
+\n
# Retrieve the edit action\n
edit_method = getattr(context, form_action)\n
return edit_method(form_id, editable_mode=0, ignore_layout=ignore_layout, **kw)\n
@@ -131,8 +132,9 @@
<string>editable_mode</string>
<string>ignore_layout</string>
<string>kw</string>
+ <string>_getattr_</string>
+ <string>context</string>
<string>getattr</string>
- <string>context</string>
<string>edit_method</string>
<string>_apply_</string>
</tuple>
Modified: erp5/trunk/bt5/erp5_web/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_web/bt/revision?rev=18855&r1=18854&r2=18855&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_web/bt/revision (original)
+++ erp5/trunk/bt5/erp5_web/bt/revision Fri Jan 25 14:17:01 2008
@@ -1,1 +1,1 @@
-612
+615
More information about the Erp5-report
mailing list