Fix issue with Python bindings.

Any Entry.functions were returning <Swig Objects> instead of instances.
Also removed invalid items from entry_dict in gnucash_business.py.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23661 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Mike Evans 2014-01-02 11:04:02 +00:00
parent 5016478de8
commit 2ee26b38a5

View File

@ -351,12 +351,10 @@ entry_dict = {
'GetBillPrice': GncNumeric,
'GetBillTaxTable': TaxTable,
'Copy': Entry,
'ReturnValue': GncNumeric,
'ReturnDiscountValue': GncNumeric,
'ReturnTaxValue': GncNumeric,
'GetInvoice': Invoice,
'GetBill': Invoice
}
methods_return_instance(Entry, entry_dict)
Entry.decorate_functions(
decorate_to_return_instance_instead_of_owner,
'GetBillTo' )