summaryrefslogtreecommitdiff
path: root/src/py_xact.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-11 16:03:50 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-11 17:02:25 -0400
commitdea2aed0b509734ec4e1cd163ac2a4f013000da2 (patch)
tree7908da76c67ae5172882306a319bf26df81b73b4 /src/py_xact.cc
parentd580079df892c30d023b3211d6c4611c17b11f8f (diff)
downloadfork-ledger-dea2aed0b509734ec4e1cd163ac2a4f013000da2.tar.gz
fork-ledger-dea2aed0b509734ec4e1cd163ac2a4f013000da2.tar.bz2
fork-ledger-dea2aed0b509734ec4e1cd163ac2a4f013000da2.zip
Untabified all source files
Diffstat (limited to 'src/py_xact.cc')
-rw-r--r--src/py_xact.cc34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/py_xact.cc b/src/py_xact.cc
index 6553a67f..5ab0d90d 100644
--- a/src/py_xact.cc
+++ b/src/py_xact.cc
@@ -84,14 +84,14 @@ void export_xact()
{
class_< xact_base_t, bases<item_t> > ("TransactionBase")
.add_property("journal",
- make_getter(&xact_base_t::journal,
- return_internal_reference<>()),
- make_setter(&xact_base_t::journal,
- with_custodian_and_ward<1, 2>()))
+ make_getter(&xact_base_t::journal,
+ return_internal_reference<>()),
+ make_setter(&xact_base_t::journal,
+ with_custodian_and_ward<1, 2>()))
.def("__len__", posts_len)
.def("__getitem__", posts_getitem,
- return_internal_reference<>())
+ return_internal_reference<>())
.def("add_post", &xact_base_t::add_post, with_custodian_and_ward<1, 2>())
.def("remove_post", &xact_base_t::add_post)
@@ -99,20 +99,20 @@ void export_xact()
.def("finalize", &xact_base_t::finalize)
.def("__iter__", python::range<return_internal_reference<> >
- (&xact_t::posts_begin, &xact_t::posts_end))
+ (&xact_t::posts_begin, &xact_t::posts_end))
.def("posts", python::range<return_internal_reference<> >
- (&xact_t::posts_begin, &xact_t::posts_end))
+ (&xact_t::posts_begin, &xact_t::posts_end))
.def("valid", &xact_base_t::valid)
;
class_< xact_t, bases<xact_base_t> > ("Transaction")
.add_property("code",
- make_getter(&xact_t::code),
- make_setter(&xact_t::code))
+ make_getter(&xact_t::code),
+ make_setter(&xact_t::code))
.add_property("payee",
- make_getter(&xact_t::payee),
- make_setter(&xact_t::payee))
+ make_getter(&xact_t::payee),
+ make_setter(&xact_t::payee))
.def("add_post", &xact_t::add_post, with_custodian_and_ward<1, 2>())
@@ -132,8 +132,8 @@ void export_xact()
.def(init<predicate_t>())
.add_property("predicate",
- make_getter(&auto_xact_t::predicate),
- make_setter(&auto_xact_t::predicate))
+ make_getter(&auto_xact_t::predicate),
+ make_setter(&auto_xact_t::predicate))
.def("extend_xact", &auto_xact_t::extend_xact)
;
@@ -142,11 +142,11 @@ void export_xact()
.def(init<string>())
.add_property("period",
- make_getter(&period_xact_t::period),
- make_setter(&period_xact_t::period))
+ make_getter(&period_xact_t::period),
+ make_setter(&period_xact_t::period))
.add_property("period_string",
- make_getter(&period_xact_t::period_string),
- make_setter(&period_xact_t::period_string))
+ make_getter(&period_xact_t::period_string),
+ make_setter(&period_xact_t::period_string))
;
}