From d7257d94bfa6d5d6204ba98484dc3a94ee421bbf Mon Sep 17 00:00:00 2001 From: Jean-Paul Smets <jp@nexedi.com> Date: Tue, 21 Apr 2009 09:53:04 +0000 Subject: [PATCH] Make the number of parameters extensible git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26548 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/Accessor/Category.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/product/ERP5Type/Accessor/Category.py b/product/ERP5Type/Accessor/Category.py index 4c19d3b66d..d1a256ad74 100644 --- a/product/ERP5Type/Accessor/Category.py +++ b/product/ERP5Type/Accessor/Category.py @@ -168,14 +168,10 @@ class DefaultGetter(BaseGetter): def __call__(self, instance, *args, **kw): if len(args) > 0: default = args[0] + kw['default'] = default else: default = None - return instance._getDefaultAcquiredCategoryMembership(self._key, - spec=kw.get('spec',()), - filter=kw.get('filter', None), - portal_type=kw.get('portal_type',()), - base=kw.get('base',0), default=default, - checked_permission=kw.get('checked_permission', None)) + return instance._getDefaultAcquiredCategoryMembership(self._key, **kw) psyco.bind(__call__) class ListGetter(BaseGetter): -- 2.30.9