Commit 1b791db8 authored by Thierry's avatar Thierry

improved with order_group


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@537 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5f734c0f
def deliveryTester(order=None, root_group=None) : def explainRootGroup(root_group=None) :
from zLOG import LOG
message = "" 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
# printing result message += "nombre de OrderGroup : %s" %len(root_group.group_list)+"\n"
message += "nombre de PathGroup : %s" %len(root_group.group_list)+"\n" for order_group in root_group.group_list :
for group in root_group.group_list : message += "\t"+"order : %s" %order_group.order+"\n"
message += "\t"+"source : %s _ destination : %s" %(group.source, group.destination)+"\n" message += "nombre de PathGroup : %s" %len(order_group.group_list)+"\n"
message += "\t"+"source_section : %s _ destination_section : %s" %(group.source_section, group.destination_section)+"\n" for group in order_group.group_list :
message += "\t"+"nombre de DateGroup : %s" %len(group.group_list)+"\n" message += "\t"+"source : %s _ destination : %s" %(group.source, group.destination)+"\n"
for sub_group in group.group_list : message += "\t"+"source_section : %s _ destination_section : %s" %(group.source_section, group.destination_section)+"\n"
message += "\t"*2+"start : %s _ stop : %s" %(sub_group.start_date, sub_group.stop_date)+"\n" message += "\t"+"nombre de DateGroup : %s" %len(group.group_list)+"\n"
message += "\t"*2+"nombre de ResourceGroup : %s" %len(sub_group.group_list)+"\n" for sub_group in group.group_list :
for sub_group2 in sub_group.group_list : message += "\t"*2+"start : %s _ stop : %s" %(sub_group.start_date, sub_group.stop_date)+"\n"
message += "\t"*3+"resource : %s" %sub_group2.resource+"\n" message += "\t"*2+"nombre de ResourceGroup : %s" %len(sub_group.group_list)+"\n"
message += "\t"*3+"nombre de VariantGroup : %s" %len(sub_group2.group_list)+"\n" for sub_group2 in sub_group.group_list :
for sub_group3 in sub_group2.group_list : message += "\t"*3+"resource : %s" %sub_group2.resource+"\n"
message += "\t"*4+"categories : %s" %str(sub_group3.category_list)+str(len(sub_group3.category_list))+"\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 return message
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment