[Erp5-report] r12943 - in /erp5/trunk/bt5/erp5_pdf_style: SkinTemplateItem/portal_skins/erp...

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Feb 21 19:15:38 CET 2007


Author: jerome
Date: Wed Feb 21 19:15:36 2007
New Revision: 12943

URL: http://svn.erp5.org?rev=12943&view=rev
Log:
This macro was not working when the selection was not initialized yet.

Modified:
    erp5/trunk/bt5/erp5_pdf_style/SkinTemplateItem/portal_skins/erp5_pdf_style/listbox_pdf_macro.xml
    erp5/trunk/bt5/erp5_pdf_style/bt/revision

Modified: erp5/trunk/bt5/erp5_pdf_style/SkinTemplateItem/portal_skins/erp5_pdf_style/listbox_pdf_macro.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_pdf_style/SkinTemplateItem/portal_skins/erp5_pdf_style/listbox_pdf_macro.xml?rev=12943&r1=12942&r2=12943&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_pdf_style/SkinTemplateItem/portal_skins/erp5_pdf_style/listbox_pdf_macro.xml (original)
+++ erp5/trunk/bt5/erp5_pdf_style/SkinTemplateItem/portal_skins/erp5_pdf_style/listbox_pdf_macro.xml Wed Feb 21 19:15:36 2007
@@ -69,15 +69,15 @@
                  editable_columns python:listbox.get_value(\'editable_columns\', REQUEST=request);\n
                  editable_fields python:dict([(column[0], getattr(listbox.aq_parent, \'listbox_%s\' % column[0], None)) for column in editable_columns]);\n
                  selection python:here.portal_selections.getSelectionFor(selection_name, REQUEST=request);\n
-                 is_domain_tree_mode python:selection.domain_tree_mode;\n
-                 is_report_tree_mode python:selection.report_tree_mode;" >\n
+                 is_domain_tree_mode selection/domain_tree_mode | nothing;\n
+                 is_report_tree_mode selection/report_tree_mode | nothing;" >\n
 \n
 \n
     <tal:block tal:condition="python: len(listboxline_list) > 1" >\n
 \n
-      <tal:block tal:condition="python: is_domain_tree_mode"\n
-                 tal:define="domain_list python: selection.getDomainList()">\n
-        <tal:block tal:condition="python: len(domain_list) > 0" >\n
+      <tal:block tal:condition="python: is_domain_tree_mode">\n
+        <tal:block tal:define="domain_list python: selection.getDomainList()"\n
+                   tal:condition="python: len(domain_list) > 0" >\n
         <table style="StandardTableWithGrid">\n
           <tr>\n
             <td tal:attributes="colwidth python:\'%.2fcm\' % float(frame_width)">\n

Modified: erp5/trunk/bt5/erp5_pdf_style/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_pdf_style/bt/revision?rev=12943&r1=12942&r2=12943&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_pdf_style/bt/revision (original)
+++ erp5/trunk/bt5/erp5_pdf_style/bt/revision Wed Feb 21 19:15:36 2007
@@ -1,1 +1,1 @@
-19
+21




More information about the Erp5-report mailing list