Commit 44ab8b9c authored by Sebastien Robin's avatar Sebastien Robin

fixed error : Python Method object got multiple values for keyword argument base


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5719 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f361afb1
...@@ -169,7 +169,9 @@ class ListGetter(Method): ...@@ -169,7 +169,9 @@ class ListGetter(Method):
self._key = key self._key = key
def __call__(self, instance, *args, **kw): def __call__(self, instance, *args, **kw):
return instance._getAcquiredCategoryMembershipList(self._key, base=0, **kw) if not kw.has_key('base'):
kw['base'] = 0
return instance._getAcquiredCategoryMembershipList(self._key, **kw)
psyco.bind(__call__) psyco.bind(__call__)
SetGetter = ListGetter # XXX ERROR SetGetter = ListGetter # XXX ERROR
......
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