[Erp5-report] r8413 - /erp5/trunk/products/ERP5Form/ListBox.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Jul 11 17:38:34 CEST 2006


Author: seb
Date: Tue Jul 11 17:38:32 2006
New Revision: 8413

URL: http://svn.erp5.org?rev=8413&view=rev
Log:
the section_depth was always equal to 0 with the parent report t

Modified:
    erp5/trunk/products/ERP5Form/ListBox.py

Modified: erp5/trunk/products/ERP5Form/ListBox.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Form/ListBox.py?rev=8413&r1=8412&r2=8413&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/ListBox.py (original)
+++ erp5/trunk/products/ERP5Form/ListBox.py Tue Jul 11 17:38:32 2006
@@ -1466,7 +1466,8 @@
               report_section_list.append(ReportSection(is_summary = False, object_list = object_list,
                                                        object_list_len = object_list_len,
                                                        is_open = report_tree.is_open,
-                                                       domain_selection = report_tree.domain_selection))
+                                                       domain_selection = report_tree.domain_selection,
+                                                       depth = report_tree.depth))
           else:
             stat_context = report_tree.obj.asContext()
             #absolute_url_txt = s[0].absolute_url()
@@ -1480,13 +1481,15 @@
                                                        object_list_len = 1,
                                                        is_open = True,
                                                        domain_selection = report_tree.domain_selection,
-                                                       context = stat_context))
+                                                       context = stat_context,
+                                                       depth = report_tree.depth))
               report_section_list.append(ReportSection(is_summary = False,
                                                        object_list = object_list,
                                                        object_list_len = object_list_len - 1,
                                                        is_open = True,
                                                        domain_selection = report_tree.domain_selection,
-                                                       offset = 1))
+                                                       offset = 1,
+                                                       depth = report_tree.depth))
             else:
               if report_tree.exception_uid_list is not None:
                 # Display current parent domain.
@@ -1495,7 +1498,8 @@
                                                          object_list_len = 1,
                                                          is_open = report_tree.is_open,
                                                          domain_selection = report_tree.domain_selection,
-                                                         context = stat_context))
+                                                         context = stat_context,
+                                                         depth = report_tree.depth))
               else:
                 # No data to display
                 report_section_list.append(ReportSection(is_summary = False,
@@ -1503,7 +1507,8 @@
                                                          object_list_len = 1,
                                                          is_open = report_tree.is_open,
                                                          domain_selection = report_tree.domain_selection,
-                                                         context = stat_context))
+                                                         context = stat_context,
+                                                         depth = report_tree.depth))
 
       # Reset the report parameter.
       selection.edit(report = None)
@@ -2622,6 +2627,7 @@
     for line in self.query():
       listboxline = ListBoxLine()
       listboxline.markDataLine()
+      listboxline.setSectionDepth(line.getDepth())
 
       if line.isSummary():
         listboxline.markSummaryLine()




More information about the Erp5-report mailing list