def load_commodities(self):
        """
        Load the commodities for Amounts in this object.
        """
        if isinstance(self.fee, Amount):
            self.fee = Amount("{0:.8f} {1}".format(self.fee.to_double(), self.currency))
        else:
            self.fee = Amount("{0:.8f} {1}".format(self.fee, self.currency))
        if isinstance(self.amount, Amount):
            self.amount = Amount("{0:.8f} {1}".format(self.amount.to_double(), self.currency))
        else:
            self.amount = Amount("{0:.8f} {1}".format(self.amount, self.currency))
def load_commodities ( self ) : if isinstance ( self . fee , Amount ) : self . fee = Amount ( "{0:.8f} {1}" . format ( self . fee . to_double ( ) , self . currency ) ) else : self . fee = Amount ( "{0:.8f} {1}" . format ( self . fee , self . currency ) ) if isinstance ( self . amount , Amount ) : self . amount = Amount ( "{0:.8f} {1}" . format ( self . amount . to_double ( ) , self . currency ) ) else : self . amount = Amount ( "{0:.8f} {1}" . format ( self . amount , self . currency ) )
Load the commodities for Amounts in this object.