diff options
author | John Wiegley <johnw@newartisans.com> | 2010-06-07 09:49:17 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-06-07 09:49:17 -0400 |
commit | be6cef93c479056169ab499d03ea212ff22db435 (patch) | |
tree | fba78156e5187bd690f519846427284cdc0b0193 /src/py_value.cc | |
parent | ae8ab8106218167036ef386159450b56c328f1b9 (diff) | |
download | fork-ledger-be6cef93c479056169ab499d03ea212ff22db435.tar.gz fork-ledger-be6cef93c479056169ab499d03ea212ff22db435.tar.bz2 fork-ledger-be6cef93c479056169ab499d03ea212ff22db435.zip |
A further simplification of -V and -X
With -X COMM, all values are computed in terms of COMM, regardless.
With -V, only secondary commodities will ever be computed, never
primaries. Further, if a secondary commodities has an associated price,
the valuation is done in terms of that price's commodity.
Diffstat (limited to 'src/py_value.cc')
-rw-r--r-- | src/py_value.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/py_value.cc b/src/py_value.cc index 449320ec..46fa94c3 100644 --- a/src/py_value.cc +++ b/src/py_value.cc @@ -48,16 +48,16 @@ BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(set_string_overloads, set_string, 0, 2) namespace { boost::optional<value_t> py_value_0(const value_t& value) { - return value.value(false, CURRENT_TIME()); + return value.value(CURRENT_TIME()); } boost::optional<value_t> py_value_1(const value_t& value, commodity_t& in_terms_of) { - return value.value(false, CURRENT_TIME(), in_terms_of); + return value.value(CURRENT_TIME(), in_terms_of); } boost::optional<value_t> py_value_2(const value_t& value, commodity_t& in_terms_of, datetime_t& moment) { - return value.value(false, moment, in_terms_of); + return value.value(moment, in_terms_of); } PyObject * py_base_type(value_t& value) |