summaryrefslogtreecommitdiff
path: root/py_amount.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-04-23 04:42:44 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:30 -0400
commit6853db57e6fdb6fd95764be1f35af0006c9e2ef9 (patch)
treebf24550cbc6053c51bf2f3fdcf27f39a4c989f24 /py_amount.cc
parentbe9f18ccfe81acdd2f34b27352f2843235fab69b (diff)
downloadfork-ledger-6853db57e6fdb6fd95764be1f35af0006c9e2ef9.tar.gz
fork-ledger-6853db57e6fdb6fd95764be1f35af0006c9e2ef9.tar.bz2
fork-ledger-6853db57e6fdb6fd95764be1f35af0006c9e2ef9.zip
All tests now working again. Reduced size of entity_t and
transaction_t considerably.
Diffstat (limited to 'py_amount.cc')
-rw-r--r--py_amount.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/py_amount.cc b/py_amount.cc
index 6a6ca499..535055fb 100644
--- a/py_amount.cc
+++ b/py_amount.cc
@@ -179,6 +179,11 @@ void export_amount()
.def("zero", &amount_t::zero)
.def("valid", &amount_t::valid)
+
+ .def("initialize", &amount_t::initialize)
+ .staticmethod("initialize")
+ .def("shutdown", &amount_t::shutdown)
+ .staticmethod("shutdown")
;
class_< commodity_base_t::updater_t, commodity_updater_wrap,