Commit 07f4b6f9 authored by Xiaowu Zhang's avatar Xiaowu Zhang

Movement: implement getSource&DestinationAssetPrice

parent 6e99f044
......@@ -487,7 +487,7 @@ class Movement(XMLObject, Amount, CompositionMixin, AmountGeneratorMixin):
type_based_script = self._getTypeBasedMethod('getSourceAssetPrice')
if type_based_script:
return type_based_script()
return self.getPrice() # XXX Not implemented yet TODO
return self.getPrice()
security.declareProtected( Permissions.AccessContentsInformation,
'getDestinationAssetPrice')
......@@ -498,7 +498,7 @@ class Movement(XMLObject, Amount, CompositionMixin, AmountGeneratorMixin):
type_based_script = self._getTypeBasedMethod('getDestinationAssetPrice')
if type_based_script:
return type_based_script()
return self.getPrice() # XXX Not implemented yet TODO
return self.getPrice()
security.declareProtected( Permissions.AccessContentsInformation,
'getSourceAssetPriceCurrency')
......
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