summaryrefslogtreecommitdiff
path: root/src/py_journal.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-01 03:31:28 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-03-01 03:31:28 -0600
commit944e580825f0d9ce060b6dcdffe8990b6c2cca20 (patch)
treee2651b0df622d9b8d3831f35743e7dbd31c16897 /src/py_journal.cc
parente2afc783db0dff1927b00dc506390353d9e3bbd2 (diff)
downloadfork-ledger-944e580825f0d9ce060b6dcdffe8990b6c2cca20.tar.gz
fork-ledger-944e580825f0d9ce060b6dcdffe8990b6c2cca20.tar.bz2
fork-ledger-944e580825f0d9ce060b6dcdffe8990b6c2cca20.zip
Refactored the notion of "the current parsing context"
Diffstat (limited to 'src/py_journal.cc')
-rw-r--r--src/py_journal.cc11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/py_journal.cc b/src/py_journal.cc
index 4f5427f5..a72b8528 100644
--- a/src/py_journal.cc
+++ b/src/py_journal.cc
@@ -135,10 +135,12 @@ namespace {
return journal.find_account(name, auto_create);
}
+#if 0
std::size_t py_read(journal_t& journal, const string& pathname)
{
- return journal.read(pathname);
+ return journal.read(context_stack);
}
+#endif
struct collector_wrapper
{
@@ -264,9 +266,10 @@ void export_journal()
;
class_< journal_t, boost::noncopyable > ("Journal")
+#if 0
.def(init<path>())
.def(init<string>())
-
+#endif
.add_property("master",
make_getter(&journal_t::master,
return_internal_reference<1,
@@ -311,9 +314,9 @@ void export_journal()
(&journal_t::period_xacts_begin, &journal_t::period_xacts_end))
.def("sources", python::range<return_internal_reference<> >
(&journal_t::sources_begin, &journal_t::sources_end))
-
+#if 0
.def("read", py_read)
-
+#endif
.def("has_xdata", &journal_t::has_xdata)
.def("clear_xdata", &journal_t::clear_xdata)