Question about GncMonetary class instead of tuple

This commit is contained in:
Christoph Holtermann
2018-11-11 18:58:46 +01:00
parent b431d471e0
commit 8fe0b14213

View File

@@ -445,7 +445,8 @@ def decorate_monetary_list_returning_function(orig_function):
array of tuples: (GncCommodity, GncNumeric)
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
# when the transaction doesn't have a currency
return [(GncCommodity(instance=item.commodity),