From 485e08577b8752e23334853fd1df7d72bafd4cb9 Mon Sep 17 00:00:00 2001
From: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
Date: Thu, 17 Feb 2011 11:22:24 +0000
Subject: [PATCH] * add Base_viewODTStyleFieliLibray and put my_title there.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43411 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../my_title.xml                              | 101 ++++++++++++++++++
 .../portal_skins/erp5_odt_style/form_view.xml |   7 +-
 bt5/erp5_odt_style/bt/change_log              |   3 +
 bt5/erp5_odt_style/bt/revision                |   2 +-
 4 files changed, 108 insertions(+), 5 deletions(-)
 create mode 100644 bt5/erp5_odt_style/SkinTemplateItem/portal_skins/erp5_odt_style/Base_viewODTStyleFieldLibrary/my_title.xml

diff --git a/bt5/erp5_odt_style/SkinTemplateItem/portal_skins/erp5_odt_style/Base_viewODTStyleFieldLibrary/my_title.xml b/bt5/erp5_odt_style/SkinTemplateItem/portal_skins/erp5_odt_style/Base_viewODTStyleFieldLibrary/my_title.xml
new file mode 100644
index 0000000000..b6150e9db2
--- /dev/null
+++ b/bt5/erp5_odt_style/SkinTemplateItem/portal_skins/erp5_odt_style/Base_viewODTStyleFieldLibrary/my_title.xml
@@ -0,0 +1,101 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>delegated_list</string> </key>
+            <value>
+              <list>
+                <string>description</string>
+                <string>title</string>
+              </list>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>my_title</string> </value>
+        </item>
+        <item>
+            <key> <string>message_values</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>external_validator_failed</string> </key>
+                    <value> <string>The input failed the external validator.</string> </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+        <item>
+            <key> <string>overrides</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>field_id</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>form_id</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>target</string> </key>
+                    <value> <string></string> </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+        <item>
+            <key> <string>tales</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>field_id</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>form_id</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>target</string> </key>
+                    <value> <string></string> </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+        <item>
+            <key> <string>values</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>description</string> </key>
+                    <value> <string>The name of a document in ERP5</string> </value>
+                </item>
+                <item>
+                    <key> <string>field_id</string> </key>
+                    <value> <string>my_string_field</string> </value>
+                </item>
+                <item>
+                    <key> <string>form_id</string> </key>
+                    <value> <string>Base_viewFieldLibrary</string> </value>
+                </item>
+                <item>
+                    <key> <string>target</string> </key>
+                    <value> <string>Click to edit the target</string> </value>
+                </item>
+                <item>
+                    <key> <string>title</string> </key>
+                    <value> <string>Title</string> </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_odt_style/SkinTemplateItem/portal_skins/erp5_odt_style/form_view.xml b/bt5/erp5_odt_style/SkinTemplateItem/portal_skins/erp5_odt_style/form_view.xml
index d03f494f0c..00d3ece601 100644
--- a/bt5/erp5_odt_style/SkinTemplateItem/portal_skins/erp5_odt_style/form_view.xml
+++ b/bt5/erp5_odt_style/SkinTemplateItem/portal_skins/erp5_odt_style/form_view.xml
@@ -218,7 +218,7 @@ bWxQSwUGAAAAAAIAAgCeAAAAhwwAAAAA</string> </value>
       <tal:block metal:define-macro="form_layout"\n
                  tal:define="dummy python: request.set(\'here\', here);\n
                              preference_tool python:here.getPortalObject().portal_preferences;\n
-                             render_text python: lambda txt, attr_dict={}: context.Base_viewFieldLibrary.my_title.render_odt(value=txt,\n
+                             render_text python: lambda txt, attr_dict={}: context.Base_viewODTStyleFieldLibrary.my_title.render_odt(value=txt,\n
                                                                                                                       REQUEST=request,\n
                                                                                                                       attr_dict=attr_dict);">\n
         <!-- standard groups -->\n
@@ -420,8 +420,7 @@ bWxQSwUGAAAAAAIAAgCeAAAAhwwAAAAA</string> </value>
       </tal:block>\n
     </office:text>\n
   </office:body>\n
-</office:document-content>\n
-
+</office:document-content>
 
 ]]></unicode> </value>
         </item>
@@ -451,7 +450,7 @@ bWxQSwUGAAAAAAIAAgCeAAAAhwwAAAAA</string> </value>
         </item>
         <item>
             <key> <string>title</string> </key>
-            <value> <string></string> </value>
+            <value> <unicode></unicode> </value>
         </item>
       </dictionary>
     </pickle>
diff --git a/bt5/erp5_odt_style/bt/change_log b/bt5/erp5_odt_style/bt/change_log
index 3b63f4d69e..9509565642 100644
--- a/bt5/erp5_odt_style/bt/change_log
+++ b/bt5/erp5_odt_style/bt/change_log
@@ -1,3 +1,6 @@
+2011-02-17 Kazuhiko
+* add Base_viewODTStyleFieliLibray and put my_title there.
+
 2010-03-02 yusei
 * Remove short title.
 
diff --git a/bt5/erp5_odt_style/bt/revision b/bt5/erp5_odt_style/bt/revision
index 2702ba3d43..d2c5ed2124 100644
--- a/bt5/erp5_odt_style/bt/revision
+++ b/bt5/erp5_odt_style/bt/revision
@@ -1 +1 @@
-115
\ No newline at end of file
+116
\ No newline at end of file
-- 
2.30.9