Commit 003921c8 authored by Fabien Morin's avatar Fabien Morin

propagate kw. This permit to sort results (for example)

reviewed by seb, tested in r37742


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37743 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bf146fdb
...@@ -242,12 +242,14 @@ class Delivery(XMLObject, ImmobilisationDelivery, CompositionMixin): ...@@ -242,12 +242,14 @@ class Delivery(XMLObject, ImmobilisationDelivery, CompositionMixin):
movement_list = [] movement_list = []
add_movement = movement_list.append add_movement = movement_list.append
extend_movement = movement_list.extend extend_movement = movement_list.extend
sub_object_list = self.objectValues(portal_type=movement_portal_type_list) sub_object_list = self.objectValues(\
portal_type=movement_portal_type_list, **kw)
extend_sub_object = sub_object_list.extend extend_sub_object = sub_object_list.extend
append_sub_object = sub_object_list.append append_sub_object = sub_object_list.append
while sub_object_list: while sub_object_list:
sub_object = sub_object_list.pop() sub_object = sub_object_list.pop()
content_list = sub_object.objectValues(portal_type=movement_portal_type_list) content_list = sub_object.objectValues(\
portal_type=movement_portal_type_list, **kw)
if sub_object.hasCellContent(): if sub_object.hasCellContent():
cell_list = sub_object.getCellValueList() cell_list = sub_object.getCellValueList()
if len(cell_list) != len(content_list): if len(cell_list) != len(content_list):
......
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