[Erp5-report] r8554 - in /erp5/trunk/bt5/erp5_html_style: SkinTemplateItem/portal_skins/erp...

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Jul 19 12:46:08 CEST 2006


Author: kevin
Date: Wed Jul 19 12:45:24 2006
New Revision: 8554

URL: http://svn.erp5.org?rev=8554&view=rev
Log:
Add support of HTML Report in list_mode (similar to history tab, but in list_mode).
Increase version number.

Added:
    erp5/trunk/bt5/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/report_list.xml
Modified:
    erp5/trunk/bt5/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_list.xml
    erp5/trunk/bt5/erp5_html_style/bt/change_log
    erp5/trunk/bt5/erp5_html_style/bt/revision
    erp5/trunk/bt5/erp5_html_style/bt/version

Modified: erp5/trunk/bt5/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_list.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_list.xml?rev=8554&r1=8553&r2=8554&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_list.xml (original)
+++ erp5/trunk/bt5/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_list.xml Wed Jul 19 12:45:24 2006
@@ -93,6 +93,7 @@
 \n
   <body>\n
 <div metal:fill-slot="main">\n
+<tal:block metal:define-macro="form_layout">\n
   <div class="Main">\n
     <tal:block metal:use-macro="here/form_developper_buttons/macros/form"/>\n
 <span tal:define="groups python: form.get_groups(include_empty=1);\n
@@ -108,6 +109,7 @@
   </tal:block>\n
 </span>\n
           </div>\n
+</tal:block>\n
       </div>\n
   </body>\n
 </html>\n
@@ -128,6 +130,10 @@
             <value> <string>form_list</string> </value>
         </item>
         <item>
+            <key> <string>isIndexable</string> </key>
+            <value> <int>0</int> </value>
+        </item>
+        <item>
             <key> <string>title</string> </key>
             <value> <string></string> </value>
         </item>

Added: erp5/trunk/bt5/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/report_list.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/report_list.xml?rev=8554&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/report_list.xml (added)
+++ erp5/trunk/bt5/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/report_list.xml Wed Jul 19 12:45:24 2006
@@ -1,0 +1,169 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <tuple>
+          <string>Products.PageTemplates.ZopePageTemplate</string>
+          <string>ZopePageTemplate</string>
+        </tuple>
+        <none/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>__ac_local_roles__</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>_bind_names</string> </key>
+            <value>
+              <object>
+                <klass>
+                  <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
+                </klass>
+                <tuple/>
+                <state>
+                  <dictionary>
+                    <item>
+                        <key> <string>_asgns</string> </key>
+                        <value>
+                          <dictionary>
+                            <item>
+                                <key> <string>name_subpath</string> </key>
+                                <value> <string>traverse_subpath</string> </value>
+                            </item>
+                          </dictionary>
+                        </value>
+                    </item>
+                  </dictionary>
+                </state>
+              </object>
+            </value>
+        </item>
+        <item>
+            <key> <string>_text</string> </key>
+            <value> <string encoding="cdata"><![CDATA[
+
+<span tal:replace="nothing">\n
+<!--\n
+Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.\n
+                   Thierry Faucher     <tf at nexedi.com>\n
+\n
+This program is Free Software; you can redistribute it and/or\n
+modify it under the terms of the GNU General Public License\n
+as published by the Free Software Foundation; either version 2\n
+of the License, or (at your option) any later version.\n
+\n
+This program is distributed in the hope that it will be useful,\n
+but WITHOUT ANY WARRANTY; without even the implied warranty of\n
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n
+GNU General Public License for more details.\n
+\n
+You should have received a copy of the GNU General Public License\n
+along with this program; if not, write to the Free Software\n
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.\n
+-->\n
+</span>\n
+<tal:block tal:define="layout_form_id here/getApplicableLayout |  nothing;\n
+                       editable_mode request/editable_mode | nothing;\n
+                       global ignore_layout request/ignore_layout | nothing;\n
+                       global layout_form python:(not layout_form_id or ignore_layout) or getattr(here, layout_form_id, None);\n
+                       default_layout string:list_master;\n
+                       layout_id layout_form/pt | default_layout;">\n
+<tal:block tal:condition="python: not layout_form_id or ignore_layout">\n
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">\n
+<?xml-stylesheet  href="erp5.css" rel="stylesheet" type="text/css"?>\n
+</tal:block>\n
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en"\n
+      xml:lang="en"\n
+      xmlns:tal="http://xml.zope.org/namespaces/tal"\n
+      xmlns:metal="http://xml.zope.org/namespaces/metal"\n
+      xmlns:i18n="http://xml.zope.org/namespaces/i18n"\n
+      metal:use-macro="python:getattr(here,layout_id).macros[\'master\']">\n
+  <head tal:define="dummy python:request.RESPONSE.setHeader(\'Content-Type\', \'text/html;; charset=utf-8\')">\n
+      <meta name="description" content="Generated by form_list" />\n
+      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\n
+      <title tal:content="template/title_or_id" i18n:translate="" i18n:domain="ui"></title>\n
+      <link href="erp5.css" rel="stylesheet" type="text/css"/>\n
+  </head>\n
+\n
+  <body>\n
+    <div metal:fill-slot="main">\n
+      <div class="Main">\n
+        <span tal:define="groups python: form.get_groups(include_empty=1);\n
+                          field_errors python: request.get(\'field_errors\',{});\n
+                          dummy python: request.set(\'here\',here)">\n
+          <span tal:condition="python: len(groups)>0">\n
+            <span tal:repeat="field python:form.get_fields_in_group(groups[0])">\n
+              <div class="FormDescription" tal:content="python:field.get_value(\'description\')"></div>\n
+              <span tal:define="value python:request.get(field.id,None)"\n
+                tal:replace="structure python:field.render(value,request)" />\n
+            </span>\n
+          </span>\n
+        </span>\n
+      </div>\n
+      <tal:block tal:define="portal_object here/portal_url/getPortalObject">\n
+        <tal:block tal:repeat="report_item python:report_method()">\n
+          <tal:block tal:define="here python:report_item.getObject(portal_object);\n
+                                 dummy python:report_item.pushReport(portal_object);\n
+                                 level report_item/getLevel | nothing">\n
+            <tal:block tal:condition="report_item/getTitle | report_item/getTranslatedTitle">\n
+              <tal:block tal:condition="report_item/getTitle">\n
+                <h1 tal:content="report_item/getTitle"\n
+                    i18n:translate="erp5_content"\n
+                    tal:condition="python:level==1">toto</h1>\n
+              </tal:block>\n
+              <tal:block tal:condition="report_item/getTranslatedTitle">\n
+                <h1 tal:content="report_item/getTitle"\n
+                    tal:condition="python:level==1">toto</h1>\n
+              </tal:block>\n
+            </tal:block>\n
+            <tal:block tal:condition="report_item/getFormId">\n
+              <tal:block tal:define="form python:getattr(here,report_item.getFormId())" >\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
+                <tal:block tal:condition="python:form.pt == \'form_list\'">\n
+                  <tal:block metal:use-macro="form/form_list/macros/form_layout"/>\n
+                </tal:block>\n
+              </tal:block>\n
+            </tal:block>\n
+            <tal:block tal:define="dummy python:report_item.popReport(portal_object)"/>\n
+          </tal:block>\n
+        </tal:block>\n
+      </tal:block>\n
+    </div>\n
+  </body>\n
+</html>\n
+</tal:block>
+
+]]></string> </value>
+        </item>
+        <item>
+            <key> <string>content_type</string> </key>
+            <value> <string>text/html</string> </value>
+        </item>
+        <item>
+            <key> <string>expand</string> </key>
+            <value> <int>0</int> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>report_list</string> </value>
+        </item>
+        <item>
+            <key> <string>isIndexable</string> </key>
+            <value> <int>0</int> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string></string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Modified: erp5/trunk/bt5/erp5_html_style/bt/change_log
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_html_style/bt/change_log?rev=8554&r1=8553&r2=8554&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_html_style/bt/change_log (original)
+++ erp5/trunk/bt5/erp5_html_style/bt/change_log Wed Jul 19 12:45:24 2006
@@ -1,3 +1,6 @@
+2006-07-19 Kevin
+* Add support of HTML Report in list_mode (similar to history tab, but in list_mode).
+
 2006-06-28 Kevin
 * Fix default string.
 

Modified: erp5/trunk/bt5/erp5_html_style/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_html_style/bt/revision?rev=8554&r1=8553&r2=8554&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_html_style/bt/revision (original)
+++ erp5/trunk/bt5/erp5_html_style/bt/revision Wed Jul 19 12:45:24 2006
@@ -1,1 +1,1 @@
-14
+8

Modified: erp5/trunk/bt5/erp5_html_style/bt/version
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_html_style/bt/version?rev=8554&r1=8553&r2=8554&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_html_style/bt/version (original)
+++ erp5/trunk/bt5/erp5_html_style/bt/version Wed Jul 19 12:45:24 2006
@@ -1,1 +1,1 @@
-0.8.1
+0.8.2




More information about the Erp5-report mailing list