Commit 46d2697e authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

Movement: Fixup get***AssetPrice

parent ab50b944
......@@ -486,7 +486,7 @@ class Movement(XMLObject, Amount, CompositionMixin, AmountGeneratorMixin):
"""
type_based_script = self._getTypeBasedMethod('getSourceAssetPrice')
if type_based_script:
return type_based_script(self)
return type_based_script()
return self.getPrice() # XXX Not implemented yet TODO
security.declareProtected( Permissions.AccessContentsInformation,
......@@ -497,7 +497,7 @@ class Movement(XMLObject, Amount, CompositionMixin, AmountGeneratorMixin):
"""
type_based_script = self._getTypeBasedMethod('getDestinationAssetPrice')
if type_based_script:
return type_based_script(self)
return type_based_script()
return self.getPrice() # XXX Not implemented yet TODO
# Causality computation
......
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