[Erp5-report] r18026 - in /erp5/trunk/bt5/erp5_odt_style: ActionTemplateItem/portal_types/p...

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Dec 5 16:42:35 CET 2007


Author: jerome
Date: Wed Dec  5 16:42:34 2007
New Revision: 18026

URL: http://svn.erp5.org?rev=18026&view=rev
Log:
odt style is a style for print, not exchange. Update action accordingly, and removes some obsoleted skins.

Added:
    erp5/trunk/bt5/erp5_odt_style/ActionTemplateItem/portal_types/portal_properties/print.xml
Modified:
    erp5/trunk/bt5/erp5_odt_style/SkinTemplateItem/portal_skins/erp5_odt_core/Base_printPdf.xml
    erp5/trunk/bt5/erp5_odt_style/SkinTemplateItem/portal_skins/erp5_odt_style/report_view.xml
    erp5/trunk/bt5/erp5_odt_style/bt/revision
    erp5/trunk/bt5/erp5_odt_style/bt/template_action_path_list

Added: erp5/trunk/bt5/erp5_odt_style/ActionTemplateItem/portal_types/portal_properties/print.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_odt_style/ActionTemplateItem/portal_types/portal_properties/print.xml?rev=18026&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_odt_style/ActionTemplateItem/portal_types/portal_properties/print.xml (added)
+++ erp5/trunk/bt5/erp5_odt_style/ActionTemplateItem/portal_types/portal_properties/print.xml Wed Dec  5 16:42:34 2007
@@ -1,0 +1,83 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>__ac_local_roles__</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>action</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>category</string> </key>
+            <value> <string>object_print</string> </value>
+        </item>
+        <item>
+            <key> <string>condition</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>icon</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>print</string> </value>
+        </item>
+        <item>
+            <key> <string>permissions</string> </key>
+            <value>
+              <tuple>
+                <string>View</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>priority</string> </key>
+            <value> <float>2.0</float> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>Print</string> </value>
+        </item>
+        <item>
+            <key> <string>visible</string> </key>
+            <value> <int>1</int> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <tuple>
+        <global name="Expression" module="Products.CMFCore.Expression"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
+            <value> <string>string:${object_url}/Base_viewPrintDialog</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Modified: erp5/trunk/bt5/erp5_odt_style/SkinTemplateItem/portal_skins/erp5_odt_core/Base_printPdf.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_odt_style/SkinTemplateItem/portal_skins/erp5_odt_core/Base_printPdf.xml?rev=18026&r1=18025&r2=18026&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_odt_style/SkinTemplateItem/portal_skins/erp5_odt_core/Base_printPdf.xml (original)
+++ erp5/trunk/bt5/erp5_odt_style/SkinTemplateItem/portal_skins/erp5_odt_core/Base_printPdf.xml Wed Dec  5 16:42:34 2007
@@ -65,9 +65,11 @@
         </item>
         <item>
             <key> <string>_body</string> </key>
-            <value> <string>portal = context.getPortalObject()\n
+            <value> <string>\'\'\'Compatibility script for old print action.\n
+\'\'\'\n
+portal = context.getPortalObject()\n
 portal.changeSkin(\'ODT\')\n
-portal.REQUEST.set(\'format\', \'pdf\')\n
+\n
 return getattr(context, form_id)()\n
 </string> </value>
         </item>

Modified: erp5/trunk/bt5/erp5_odt_style/SkinTemplateItem/portal_skins/erp5_odt_style/report_view.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_odt_style/SkinTemplateItem/portal_skins/erp5_odt_style/report_view.xml?rev=18026&r1=18025&r2=18026&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_odt_style/SkinTemplateItem/portal_skins/erp5_odt_style/report_view.xml (original)
+++ erp5/trunk/bt5/erp5_odt_style/SkinTemplateItem/portal_skins/erp5_odt_style/report_view.xml Wed Dec  5 16:42:34 2007
@@ -331,6 +331,8 @@
   \n
                       <tal:block tal:condition="report_item/getFormId">\n
                        <tal:block tal:define="form python:getattr(here, report_item.getFormId())" >\n
+                         <!-- TODO: define a macro for multiple prints, for\n
+                              actions using an odt print action. -->\n
                         <tal:block tal:condition="python:form.pt == \'form_view\'">\n
                           <tal:block metal:use-macro="form/form_view/macros/form_layout"/>\n
                         </tal:block>\n

Modified: erp5/trunk/bt5/erp5_odt_style/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_odt_style/bt/revision?rev=18026&r1=18025&r2=18026&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_odt_style/bt/revision (original)
+++ erp5/trunk/bt5/erp5_odt_style/bt/revision Wed Dec  5 16:42:34 2007
@@ -1,1 +1,1 @@
-19
+21

Modified: erp5/trunk/bt5/erp5_odt_style/bt/template_action_path_list
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_odt_style/bt/template_action_path_list?rev=18026&r1=18025&r2=18026&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_odt_style/bt/template_action_path_list (original)
+++ erp5/trunk/bt5/erp5_odt_style/bt/template_action_path_list Wed Dec  5 16:42:34 2007
@@ -1,1 +1,1 @@
-portal_properties | odt_exchange
+portal_properties | print




More information about the Erp5-report mailing list