summaryrefslogtreecommitdiff
path: root/src/py_times.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-10-25 05:39:59 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-10-25 05:39:59 -0400
commitb061c8082f02a105cc912a42a523036469a732ac (patch)
tree71f01abef598c6b5c35fbe1202778b7f2d074e6b /src/py_times.cc
parentca1560d53d2dc6a0a78ba607296b22b5ebb0feb8 (diff)
downloadfork-ledger-b061c8082f02a105cc912a42a523036469a732ac.tar.gz
fork-ledger-b061c8082f02a105cc912a42a523036469a732ac.tar.bz2
fork-ledger-b061c8082f02a105cc912a42a523036469a732ac.zip
Export times_initialize and times_shutdown to Python
Diffstat (limited to 'src/py_times.cc')
-rw-r--r--src/py_times.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/py_times.cc b/src/py_times.cc
index 4d6519ed..e140a23c 100644
--- a/src/py_times.cc
+++ b/src/py_times.cc
@@ -165,8 +165,10 @@ void export_times()
register_optional_to_python<datetime_t>();
register_optional_to_python<date_t>();
- scope().attr("parse_datetime") = &py_parse_datetime;
- scope().attr("parse_date") = &py_parse_date;
+ scope().attr("parse_datetime") = &py_parse_datetime;
+ scope().attr("parse_date") = &py_parse_date;
+ scope().attr("times_initialize") = &times_initialize;
+ scope().attr("times_shutdown") = &times_shutdown;
#if 0
class_< interval_t > ("Interval")