Revert "Question about GncMonetary class instead of tuple"

This reverts commit 8fe0b14213.
Question has been discussed in pull request.
This commit is contained in:
Christoph Holtermann 2018-12-04 12:17:56 +01:00
parent 8fe0b14213
commit ff660a873e

View File

@ -445,8 +445,7 @@ def decorate_monetary_list_returning_function(orig_function):
array of tuples: (GncCommodity, GncNumeric) array of tuples: (GncCommodity, GncNumeric)
ToDo: ToDo:
* Maybe this function should better reside in module function_class ? Maybe this function should better reside in module function_class (?)"""
* Should it be tuples anyway ? Wouldn't it be better to have GncMonetary to reflect gnc_monetary in c ?"""
# warning, item.commodity has been shown to be None # warning, item.commodity has been shown to be None
# when the transaction doesn't have a currency # when the transaction doesn't have a currency
return [(GncCommodity(instance=item.commodity), return [(GncCommodity(instance=item.commodity),