|
GnuCash
5.6-150-g038405b370+
|
some functions to make life easier when using python-bindings More...
Go to the source code of this file.
Functions | |
| def | gnc_convenience.get_transaction_list (account) |
| def | gnc_convenience.get_splits_without_lot (account=None, split_list=None) |
| def | gnc_convenience.find_account (account, name, account_list=None) |
| def | gnc_convenience.find_lot (lot_list, search_string) |
| def | gnc_convenience.find_split (split_list, search_string) |
| def | gnc_convenience.find_split_recursive (account, search_string) |
| def | gnc_convenience.find_transaction (account, name, ignore_case=True, transaction_list=None) |
some functions to make life easier when using python-bindings
Definition in file gnc_convenience.py.
| def gnc_convenience.find_account | ( | account, | |
| name, | |||
account_list = None |
|||
| ) |
Recursively searches full names of account and descendents returns a list of accounts which contain name. options: account: account to start search in. name: name to search for. account_list: (optional) list to append accounts to.
Definition at line 59 of file gnc_convenience.py.
| def gnc_convenience.find_lot | ( | lot_list, | |
| search_string | |||
| ) |
Searches lots in lot_list for search_string. returns list of lots where title contains search_string. options: lot_list: List of Lots to search in. search_string: String to search for.
Definition at line 85 of file gnc_convenience.py.
| def gnc_convenience.find_split | ( | split_list, | |
| search_string | |||
| ) |
Searches a list of splits for search_string returns a list of splits that have search_string as part of memo or description of parent transaction. options: split_list: List of Splits to search in. search_string: String to search for.
Definition at line 105 of file gnc_convenience.py.
| def gnc_convenience.find_split_recursive | ( | account, | |
| search_string | |||
| ) |
Searches account and descendants for Splits containing search_string returns a list of splits that have search_string as part of memo or description of parent transaction. options: account: Account to search in. search_string: String to search for.
Definition at line 128 of file gnc_convenience.py.
| def gnc_convenience.find_transaction | ( | account, | |
| name, | |||
ignore_case = True, |
|||
transaction_list = None |
|||
| ) |
Searches the transactions of an account for name. Searches in description and in memo of each split. returns a list of transactions that match criteria. options: account: Account to search in. name: String to search for. ignore_case: (optional, default=True) Ignore case if True. transaction_list: (optional) list of transactions to search in.
Definition at line 158 of file gnc_convenience.py.
| def gnc_convenience.get_splits_without_lot | ( | account = None, |
|
split_list = None |
|||
| ) |
Returns a list of those Splits in split_list or account which do not have an according lot. options: account: (optional) Account to search in. split_list: (optional) List of Splits to search in. one or the other has to be provided.
Definition at line 34 of file gnc_convenience.py.
| def gnc_convenience.get_transaction_list | ( | account | ) |
Returns all transactions in account. Splits are derived from account.GetSplitList(). options: account: Account to get transactions from.
Definition at line 14 of file gnc_convenience.py.
1.8.14