Commit d7257d94 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Make the number of parameters extensible

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26548 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 11c75e57
...@@ -168,14 +168,10 @@ class DefaultGetter(BaseGetter): ...@@ -168,14 +168,10 @@ class DefaultGetter(BaseGetter):
def __call__(self, instance, *args, **kw): def __call__(self, instance, *args, **kw):
if len(args) > 0: if len(args) > 0:
default = args[0] default = args[0]
kw['default'] = default
else: else:
default = None default = None
return instance._getDefaultAcquiredCategoryMembership(self._key, return instance._getDefaultAcquiredCategoryMembership(self._key, **kw)
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))
psyco.bind(__call__) psyco.bind(__call__)
class ListGetter(BaseGetter): class ListGetter(BaseGetter):
......
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