From 34ee358f5e16d4018adf3db5dac31d2d9c16b9f5 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 5 Nov 2009 02:26:06 -0500 Subject: Moved journal reading code into journal_t --- src/py_journal.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/py_journal.cc') diff --git a/src/py_journal.cc b/src/py_journal.cc index bc79101b..a9789840 100644 --- a/src/py_journal.cc +++ b/src/py_journal.cc @@ -171,6 +171,8 @@ namespace { void export_journal() { class_< journal_t::fileinfo_t > ("FileInfo") + .def(init()) + .add_property("filename", make_getter(&journal_t::fileinfo_t::filename), make_setter(&journal_t::fileinfo_t::filename)) @@ -186,6 +188,9 @@ void export_journal() ; class_< journal_t, boost::noncopyable > ("Journal") + .def(init()) + .def(init()) + .add_property("master", make_getter(&journal_t::master, return_internal_reference<1>())) .add_property("basket", -- cgit v1.2.3