Commit 423074be authored by Romain Courteaud's avatar Romain Courteaud

Temp patch: accessor does not return the correct value.

Use getattr instead for now.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4310 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ee4b1bd6
......@@ -269,8 +269,10 @@ class Amount(Base, Variated):
if resource is not None:
variation_list = resource.getVariationPropertyList()
for variation_property in variation_list:
# XXX Accessor does not return the correct value !
property_dict[variation_property] = \
self.getProperty(variation_property)
getattr(self, variation_property, None)
# self.getProperty(variation_property)
return property_dict
security.declareProtected(Permissions.ModifyPortalContent,
......
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