summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-01-19 19:58:47 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-01-19 19:58:47 -0400
commit5cc99a6972b3b50d70b69897325bc821c8c9ec19 (patch)
treefea89ccce7750e72d61b89149952dc75f58557b8 /python
parent94463c7b0fdc9f51f80ff6816f77b12e4e10017b (diff)
downloadfork-ledger-5cc99a6972b3b50d70b69897325bc821c8c9ec19.tar.gz
fork-ledger-5cc99a6972b3b50d70b69897325bc821c8c9ec19.tar.bz2
fork-ledger-5cc99a6972b3b50d70b69897325bc821c8c9ec19.zip
Changed COMMODITY_STYLE_BUILTIN to COMMODITY_BUILTIN, and added new flag
COMMODITY_WALKED, for avoiding infinite recursions during price lookups.
Diffstat (limited to 'python')
-rw-r--r--python/py_commodity.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/py_commodity.cc b/python/py_commodity.cc
index 3cf7d30c..928280d5 100644
--- a/python/py_commodity.cc
+++ b/python/py_commodity.cc
@@ -48,7 +48,8 @@ void export_commodity()
scope().attr("COMMODITY_STYLE_EUROPEAN") = COMMODITY_STYLE_EUROPEAN;
scope().attr("COMMODITY_STYLE_THOUSANDS") = COMMODITY_STYLE_THOUSANDS;
scope().attr("COMMODITY_STYLE_NOMARKET") = COMMODITY_STYLE_NOMARKET;
- scope().attr("COMMODITY_STYLE_BUILTIN") = COMMODITY_STYLE_BUILTIN;
+ scope().attr("COMMODITY_BUILTIN") = COMMODITY_BUILTIN;
+ scope().attr("COMMODITY_WALKED") = COMMODITY_WALKED;
class_< commodity_t, bases<>,
commodity_t, boost::noncopyable > ("commodity", no_init)