From 0d8805ac60a065e3db75f46860e247f1eb895e71 Mon Sep 17 00:00:00 2001 From: Jean-Paul Smets <jp@nexedi.com> Date: Thu, 11 Dec 2003 17:41:24 +0000 Subject: [PATCH] Added getAggregateList git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@92 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Extensions/InventoryBrain.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/product/ERP5/Extensions/InventoryBrain.py b/product/ERP5/Extensions/InventoryBrain.py index dfddd9b9f4..8ad8a0bbcc 100755 --- a/product/ERP5/Extensions/InventoryBrain.py +++ b/product/ERP5/Extensions/InventoryBrain.py @@ -168,6 +168,18 @@ class InventoryListBrain(ZSQLBrain): except: return '' + def getAggregateList(self): + aggregate_list = self.Resource.zGetAggregateList( + explanation_uid = self.explanation_uid, + node_uid = self.node_uid, + section_uid = self.section_uid, + variation_text = self.variation_text, + resource_uid = self.resource_uid) + result = [] + for o in aggregate_list: + result.append(o.relative_url) + return '\n'.join(aggregate_list) + def getExplanationText(self): # Returns an explanation of the movement o = self.getObject() -- 2.30.9