So, accessing the journal object aside, I'm having trouble retrieving the
balance of an account from python. I also noticed that the journal and
account accesses are commending out in python/demo.py in the ledger
source. Any thoughts?
*>>> account.amount()*
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
Boost.Python.ArgumentError: Python argument types in
Account.amount(Account)
did not match C++ signature:
amount(ledger::account_t {lvalue}, boost::optional<ledger::expr_t&>)
*>>> account.total()*
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
Boost.Python.ArgumentError: Python argument types in
Account.total(Account)
did not match C++ signature:
total(ledger::account_t {lvalue}, boost::optional<ledger::expr_t&>)
- Harpreet "Eli" Sangha
On Mon, Nov 3, 2014 at 5:04 PM, ELI <[email protected]> wrote:
> John,
>
> I see journal methods exposed, but not the journal object itself. Can you
> provide the attribute (i.e. ledger.journal, ledger.session.journal) or the
> source you've referring to?
>
> - Harpreet "Eli" Sangha
> >>>>> ELI <[email protected]> writes:
>
> > Would this be a viable feature request?
>
> Sure! And looking at the source code, the journal object *is* made
> available
> to the Python API.
>
> John
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Ledger" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
--
---
You received this message because you are subscribed to the Google Groups
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.