Commit fa34ee85 authored by Xiaowu Zhang's avatar Xiaowu Zhang Committed by Cédric Le Ninivin

Movement: implement getSource&DestinationAssetPrice

parent e04afbe5
...@@ -484,7 +484,10 @@ class Movement(XMLObject, Amount, CompositionMixin, AmountGeneratorMixin): ...@@ -484,7 +484,10 @@ class Movement(XMLObject, Amount, CompositionMixin, AmountGeneratorMixin):
This will be implemeted by calling currency conversion on currency resources This will be implemeted by calling currency conversion on currency resources
""" """
return self.getPrice() # XXX Not implemented yet TODO type_based_script = self._getTypeBasedMethod('getSourceAssetPrice')
if type_based_script:
return type_based_script()
return self.getPrice()
security.declareProtected( Permissions.AccessContentsInformation, security.declareProtected( Permissions.AccessContentsInformation,
'getDestinationAssetPrice') 'getDestinationAssetPrice')
...@@ -492,7 +495,10 @@ class Movement(XMLObject, Amount, CompositionMixin, AmountGeneratorMixin): ...@@ -492,7 +495,10 @@ class Movement(XMLObject, Amount, CompositionMixin, AmountGeneratorMixin):
""" """
Returns the price converted to the currency of the destination section Returns the price converted to the currency of the destination section
""" """
return self.getPrice() # XXX Not implemented yet TODO type_based_script = self._getTypeBasedMethod('getDestinationAssetPrice')
if type_based_script:
return type_based_script()
return self.getPrice()
# Causality computation # Causality computation
security.declareProtected( Permissions.AccessContentsInformation, security.declareProtected( Permissions.AccessContentsInformation,
......
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