[Erp5-report] r29001 - in /erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm: ...
nobody at svn.erp5.org
nobody at svn.erp5.org
Sun Sep 13 15:05:14 CEST 2009
Author: jp
Date: Sun Sep 13 15:05:14 2009
New Revision: 29001
URL: http://svn.erp5.org?rev=29001&view=rev
Log:
Proxyfication of text_content fields. Deprecation of Event_getTextContentCorrespondToFormat.
Modified:
erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Acknowledgement_view/my_text_content.xml
erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_getTextContentCorrespondToFormat.xml
erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_view/my_text_content.xml
Modified: erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Acknowledgement_view/my_text_content.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Acknowledgement_view/my_text_content.xml?rev=29001&r1=29000&r2=29001&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Acknowledgement_view/my_text_content.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Acknowledgement_view/my_text_content.xml [utf8] Sun Sep 13 15:05:14 2009
@@ -13,6 +13,8 @@
<key> <string>delegated_list</string> </key>
<value>
<list>
+ <string>css_class</string>
+ <string>default</string>
<string>editable</string>
</list>
</value>
@@ -56,6 +58,20 @@
<value>
<dictionary>
<item>
+ <key> <string>css_class</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
+ <key> <string>default</string> </key>
+ <value>
+ <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+ </value>
+ </item>
+ <item>
+ <key> <string>editable</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
</item>
@@ -74,6 +90,14 @@
<key> <string>values</string> </key>
<value>
<dictionary>
+ <item>
+ <key> <string>css_class</string> </key>
+ <value> <string>page</string> </value>
+ </item>
+ <item>
+ <key> <string>default</string> </key>
+ <value> <string></string> </value>
+ </item>
<item>
<key> <string>editable</string> </key>
<value> <int>0</int> </value>
@@ -96,4 +120,20 @@
</dictionary>
</pickle>
</record>
+ <record id="2" aka="AAAAAAAAAAI=">
+ <pickle>
+ <tuple>
+ <global name="TALESMethod" module="Products.Formulator.TALESField"/>
+ <tuple/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>_text</string> </key>
+ <value> <string>python:here.Event_getEditorFieldTextContent(editable=False)</string> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
</ZopeData>
Modified: erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_getTextContentCorrespondToFormat.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_getTextContentCorrespondToFormat.xml?rev=29001&r1=29000&r2=29001&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_getTextContentCorrespondToFormat.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_getTextContentCorrespondToFormat.xml [utf8] Sun Sep 13 15:05:14 2009
@@ -54,6 +54,9 @@
<item>
<key> <string>_body</string> </key>
<value> <string>from Products.PythonScripts.standard import newline_to_br\n
+from Products.ERP5Type.Log import log\n
+\n
+log("Event_getTextContentCorrespondToFormat is deprecated, use Event_getEditorFieldTextContent instead", level=100) # WARNING\n
\n
text_format = context.getTextFormat()\n
\n
@@ -104,6 +107,8 @@
<string>editable</string>
<string>Products.PythonScripts.standard</string>
<string>newline_to_br</string>
+ <string>Products.ERP5Type.Log</string>
+ <string>log</string>
<string>_getattr_</string>
<string>context</string>
<string>text_format</string>
Modified: erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_view/my_text_content.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_view/my_text_content.xml?rev=29001&r1=29000&r2=29001&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_view/my_text_content.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_view/my_text_content.xml [utf8] Sun Sep 13 15:05:14 2009
@@ -12,9 +12,7 @@
<item>
<key> <string>delegated_list</string> </key>
<value>
- <list>
- <string>default</string>
- </list>
+ <list/>
</value>
</item>
<item>
@@ -56,12 +54,6 @@
<value>
<dictionary>
<item>
- <key> <string>default</string> </key>
- <value>
- <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
- </value>
- </item>
- <item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
</item>
@@ -81,10 +73,6 @@
<value>
<dictionary>
<item>
- <key> <string>default</string> </key>
- <value> <string></string> </value>
- </item>
- <item>
<key> <string>field_id</string> </key>
<value> <string>my_text_content</string> </value>
</item>
@@ -102,20 +90,4 @@
</dictionary>
</pickle>
</record>
- <record id="2" aka="AAAAAAAAAAI=">
- <pickle>
- <tuple>
- <global name="TALESMethod" module="Products.Formulator.TALESField"/>
- <tuple/>
- </tuple>
- </pickle>
- <pickle>
- <dictionary>
- <item>
- <key> <string>_text</string> </key>
- <value> <string>python:here.Event_getTextContentCorrespondToFormat(editable=not here.hasFile())</string> </value>
- </item>
- </dictionary>
- </pickle>
- </record>
</ZopeData>
More information about the Erp5-report
mailing list