From 1b791db8f618b278db37819a1b8c0da2bb5ad823 Mon Sep 17 00:00:00 2001
From: Thierry Brettnacher <tb@nexedi.com>
Date: Thu, 4 Mar 2004 17:41:16 +0000
Subject: [PATCH] improved with order_group

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@537 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/Coramy/Extensions/deliveryTester.py | 40 ++++++++++-----------
 1 file changed, 20 insertions(+), 20 deletions(-)

diff --git a/product/Coramy/Extensions/deliveryTester.py b/product/Coramy/Extensions/deliveryTester.py
index d4a5fcf170..d2dcd1a753 100755
--- a/product/Coramy/Extensions/deliveryTester.py
+++ b/product/Coramy/Extensions/deliveryTester.py
@@ -1,25 +1,25 @@
-def deliveryTester(order=None, root_group=None) :
+def explainRootGroup(root_group=None) :
 
-  from zLOG import LOG
   message = ""
-  delivery_list = []
 
-  if root_group is not None and order is not None:
+  if root_group is not None :
 
-    LOG('ca marche',0,'')
-# printing result
-    message += "nombre de PathGroup : %s" %len(root_group.group_list)+"\n"
-    for group in root_group.group_list :
-      message += "\t"+"source : %s _ destination : %s" %(group.source, group.destination)+"\n"
-      message += "\t"+"source_section : %s _ destination_section : %s" %(group.source_section, group.destination_section)+"\n"
-      message += "\t"+"nombre de DateGroup : %s" %len(group.group_list)+"\n"
-      for sub_group in group.group_list :
-        message += "\t"*2+"start : %s _ stop : %s" %(sub_group.start_date, sub_group.stop_date)+"\n"
-        message += "\t"*2+"nombre de ResourceGroup : %s" %len(sub_group.group_list)+"\n"
-        for sub_group2 in sub_group.group_list :
-          message += "\t"*3+"resource : %s" %sub_group2.resource+"\n"
-          message += "\t"*3+"nombre de VariantGroup : %s" %len(sub_group2.group_list)+"\n"
-          for sub_group3 in sub_group2.group_list :
-            message += "\t"*4+"categories : %s" %str(sub_group3.category_list)+str(len(sub_group3.category_list))+"\n"
+    # printing result
+    message += "nombre de OrderGroup : %s" %len(root_group.group_list)+"\n"
+    for order_group in root_group.group_list :
+      message += "\t"+"order : %s" %order_group.order+"\n"
+      message += "nombre de PathGroup : %s" %len(order_group.group_list)+"\n"
+      for group in order_group.group_list :
+        message += "\t"+"source : %s _ destination : %s" %(group.source, group.destination)+"\n"
+        message += "\t"+"source_section : %s _ destination_section : %s" %(group.source_section, group.destination_section)+"\n"
+        message += "\t"+"nombre de DateGroup : %s" %len(group.group_list)+"\n"
+        for sub_group in group.group_list :
+          message += "\t"*2+"start : %s _ stop : %s" %(sub_group.start_date, sub_group.stop_date)+"\n"
+          message += "\t"*2+"nombre de ResourceGroup : %s" %len(sub_group.group_list)+"\n"
+          for sub_group2 in sub_group.group_list :
+            message += "\t"*3+"resource : %s" %sub_group2.resource+"\n"
+            message += "\t"*3+"nombre de VariantGroup : %s" %len(sub_group2.group_list)+"\n"
+            for sub_group3 in sub_group2.group_list :
+              message += "\t"*4+"categories : %s" %str(sub_group3.category_list)+str(len(sub_group3.category_list))+"\n"
 
-  return message
\ No newline at end of file
+  return message
-- 
2.30.9