Commit fb5c6b51 authored by Romain Courteaud's avatar Romain Courteaud

Use accessor instead of getattr.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6352 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 25aea6a2
......@@ -282,10 +282,8 @@ 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] = \
getattr(self, variation_property, None)
# self.getProperty(variation_property)
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