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 += "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 : %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"+"source_section : %s _ destination_section : %s" %(group.source_section, group.destination_section)+"\n"
message += "\t"+"nombre de DateGroup : %s" %len(group.group_list)+"\n" message += "\t"+"nombre de DateGroup : %s" %len(group.group_list)+"\n"
......
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