summaryrefslogtreecommitdiff
path: root/src/py_journal.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-02 01:55:55 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-02 01:55:55 -0400
commitcda19829bd1100d6563b48ddb121f2afc1c55d95 (patch)
tree5b6ab0d1eb7ec1b0b3eccf817678d0aa9a3feb47 /src/py_journal.cc
parent017492ef5e80003073c5d053252d4a68a44260ae (diff)
parentfb7cafa8965c89bbd66b09f827bd5989a87c983b (diff)
downloadfork-ledger-cda19829bd1100d6563b48ddb121f2afc1c55d95.tar.gz
fork-ledger-cda19829bd1100d6563b48ddb121f2afc1c55d95.tar.bz2
fork-ledger-cda19829bd1100d6563b48ddb121f2afc1c55d95.zip
Merge branch 'next'
Diffstat (limited to 'src/py_journal.cc')
-rw-r--r--src/py_journal.cc19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/py_journal.cc b/src/py_journal.cc
index 81ce290d..1848adc4 100644
--- a/src/py_journal.cc
+++ b/src/py_journal.cc
@@ -226,8 +226,8 @@ void export_journal()
class_< collect_posts, bases<item_handler<post_t> >,
shared_ptr<collect_posts>, boost::noncopyable >("PostCollector")
.def("__len__", &collect_posts::length)
- .def("__iter__", range<return_internal_reference<1,
- with_custodian_and_ward_postcall<1, 0> > >
+ .def("__iter__", python::range<return_internal_reference<1,
+ with_custodian_and_ward_postcall<1, 0> > >
(&collect_posts::begin, &collect_posts::end))
;
@@ -236,8 +236,9 @@ void export_journal()
.def("__len__", &collector_wrapper::length)
.def("__getitem__", posts_getitem, return_internal_reference<1,
with_custodian_and_ward_postcall<0, 1> >())
- .def("__iter__", range<return_value_policy<reference_existing_object,
- with_custodian_and_ward_postcall<0, 1> > >
+ .def("__iter__",
+ python::range<return_value_policy<reference_existing_object,
+ with_custodian_and_ward_postcall<0, 1> > >
(&collector_wrapper::begin, &collector_wrapper::end))
;
@@ -296,15 +297,15 @@ void export_journal()
with_custodian_and_ward_postcall<0, 1> >())
#endif
- .def("__iter__", range<return_internal_reference<> >
+ .def("__iter__", python::range<return_internal_reference<> >
(&journal_t::xacts_begin, &journal_t::xacts_end))
- .def("xacts", range<return_internal_reference<> >
+ .def("xacts", python::range<return_internal_reference<> >
(&journal_t::xacts_begin, &journal_t::xacts_end))
- .def("auto_xacts", range<return_internal_reference<> >
+ .def("auto_xacts", python::range<return_internal_reference<> >
(&journal_t::auto_xacts_begin, &journal_t::auto_xacts_end))
- .def("period_xacts", range<return_internal_reference<> >
+ .def("period_xacts", python::range<return_internal_reference<> >
(&journal_t::period_xacts_begin, &journal_t::period_xacts_end))
- .def("sources", range<return_internal_reference<> >
+ .def("sources", python::range<return_internal_reference<> >
(&journal_t::sources_begin, &journal_t::sources_end))
.def("read", py_read)