Commit 4e88870b authored by Jérome Perrin's avatar Jérome Perrin

When getting a aquired_property from a content subobject, propagate kw

arguments passed to the getter to the aquired_property getter.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7052 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 181cc4dd
......@@ -167,7 +167,7 @@ class Getter(Method):
o = getattr(instance, k, None)
if o is not None and o.portal_type in self._portal_type:
#return o.getRelativeUrl()
return o.getProperty(self._acquired_property, default)
return o.getProperty(self._acquired_property, default, **kw)
return default
psyco.bind(__call__)
......
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