On Fri, Feb 1, 2013 at 6:06 PM, Ethan <[email protected]> wrote:
> On Thu, Jan 31, 2013 at 5:27 PM, Zack Williams <[email protected]> wrote:
>>
>> account.amount doesn't act the same as post.amount - printing it
>> results in a '<bound method Account.amount of <ledger.Account object
>> at 0x108898830>>' rather than an amount.  I can't appear to add this
>> to a Balance object to convert it, and I'm not well versed enough in
>> the python internals to know how to proceed here.
>
> Just a note that generally this message means that account.amount isn't a
> field, but rather a method. Try account.amount() if you haven't already.

Trying that on a simple loop on all accounts:

--
for account in journal.find_account_re(''):
    print account.amount()
--

results in this error:

--
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&>)
Abort trap: 6
--

I'm assuming this is a bug.

- Zack

-- 

--- 
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/groups/opt_out.


Reply via email to