From 1dba94eef6db1b00710741e44008d0b78196726d Mon Sep 17 00:00:00 2001
From: Sebastien Robin <seb@nexedi.com>
Date: Tue, 5 Apr 2005 14:14:28 +0000
Subject: [PATCH] getVariationRangeCategoryItemList should supports many
 parameters

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2797 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Document/TransformedResource.py | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

diff --git a/product/ERP5/Document/TransformedResource.py b/product/ERP5/Document/TransformedResource.py
index f46fd34dd9..6c3ac84fbf 100755
--- a/product/ERP5/Document/TransformedResource.py
+++ b/product/ERP5/Document/TransformedResource.py
@@ -148,8 +148,12 @@ class TransformedResource(XMLObject, XMLMatrix, Amount):
 
 
     security.declareProtected(Permissions.AccessContentsInformation,'getVariationRangeCategoryItemList')
-    def getVariationRangeCategoryItemList(self, base_category_list=(),
-                                          display_base_category=1):
+    def getVariationRangeCategoryItemList(self, base_category_list = (),
+                                          omit_individual_variation=1, base=1,
+                                          current_category=None,
+                                          display_base_category=1,
+                                          display_id='title', **kw):
+
         """
           Returns possible variation category values for the
           transformation according to the default resource.
@@ -166,9 +170,13 @@ class TransformedResource(XMLObject, XMLMatrix, Amount):
             base_category_list = resource.getVariationBaseCategoryList()
 
           result = resource.getVariationCategoryItemList(
-                                   display_base_category=display_base_category,
-                                   base_category_list=base_category_list,
-                                   omit_individual_variation=0)
+                                     base_category_list=base_category_list,
+                                     omit_individual_variation=0,
+                                     base=base,
+                                     current_category=current_category,
+                                     display_base_category=display_base_category,
+                                     display_id=display_id,
+                                     **kw)
 
         return result
 
-- 
2.30.9