summaryrefslogtreecommitdiff
path: root/src/py_journal.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-05 02:26:06 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-05 02:27:42 -0500
commit34ee358f5e16d4018adf3db5dac31d2d9c16b9f5 (patch)
tree5f2db02f896b2e50edb4fa1b143960286f6c1991 /src/py_journal.cc
parent817f1ae1619df06f06f79f772f075041bb70f751 (diff)
downloadfork-ledger-34ee358f5e16d4018adf3db5dac31d2d9c16b9f5.tar.gz
fork-ledger-34ee358f5e16d4018adf3db5dac31d2d9c16b9f5.tar.bz2
fork-ledger-34ee358f5e16d4018adf3db5dac31d2d9c16b9f5.zip
Moved journal reading code into journal_t
Diffstat (limited to 'src/py_journal.cc')
-rw-r--r--src/py_journal.cc5
1 files changed, 5 insertions, 0 deletions
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<path>())
+
.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<path>())
+ .def(init<string>())
+
.add_property("master", make_getter(&journal_t::master,
return_internal_reference<1>()))
.add_property("basket",