Skip to content

Commit

Permalink
Add child functions to Account in python bindings.
Browse files Browse the repository at this point in the history
Add children discovery functions to Account type for the python bindings.

Author: Hendrik van Antwerpen <hendrik@van-antwerpen.net>

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22806 57a11ea4-9604-0410-9ed3-97b8803252fd
  • Loading branch information
gjanssens committed Feb 22, 2013
1 parent 432632f commit b45a9fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/optional/python-bindings/gnucash_core.py
Expand Up @@ -653,6 +653,10 @@ def one_arg_default_none(function):
methods_return_instance(Account, account_dict)
methods_return_instance_lists(
Account, { 'GetSplitList': Split,
'get_children': Account,
'get_children_sorted': Account,
'get_descendants': Account,
'get_descendants_sorted': Account
})
Account.name = property( Account.GetName, Account.SetName )

Expand Down

0 comments on commit b45a9fa

Please sign in to comment.