Mike Alexander
ce3143c4be
Avoid warning returning a boolean result in python bindings.
...
Getting "dereferencing type-punned pointer" doing Py_INCREF on Py_True and Py_False.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21603 57a11ea4-9604-0410-9ed3-97b8803252fd
15 years ago
John Ralls
4ee898d90b
[Python] Export core-utils SWIG wrappers to Python.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21600 57a11ea4-9604-0410-9ed3-97b8803252fd
15 years ago
Geert Janssens
ff9ddda750
Completed mapping for owner types and added tests.
...
Patch by Hendrik van Antwerpen <hendrik@van-antwerpen.net>
* Include gncOwner later, to use typemap.
* Add gncOwner functions to GnuCashBusinessEntity.
* Removed Owner, since it's basically GnuCashBusinessEntity.
* Included test for some business classes.
* Added currency to tests to reduce complaining.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21363 57a11ea4-9604-0410-9ed3-97b8803252fd
15 years ago
Geert Janssens
698a1dc6ac
Added bindings for Employee, Job and Owner types.
...
Patch by Hendrik van Antwerpen <hendrik@van-antwerpen.net>
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21362 57a11ea4-9604-0410-9ed3-97b8803252fd
15 years ago
Geert Janssens
24269aab8a
Added gncVendor and gncCustomer to base-typemap.i.
...
Patch by Hendrik van Antwerpen <hendrik@van-antwerpen.net>
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21359 57a11ea4-9604-0410-9ed3-97b8803252fd
15 years ago
Geert Janssens
56441aabda
Add qof queries to python bindings and set PYTHON_PATH in gnucash-env
...
Patch by Hendrik van Antwerpen
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21215 57a11ea4-9604-0410-9ed3-97b8803252fd
15 years ago
Christian Stimming
f16a4e3a83
639980: Add EntryList and _gncEntry objects to list typemap.
...
Patch by bstpierre.org
Fix python failing getting invoice entry data.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20129 57a11ea4-9604-0410-9ed3-97b8803252fd
15 years ago
Christian Stimming
e0e8300c54
Bug #637346 : A second step towards doxygen python-bindings docs
...
Patch by Christoph Holtermann
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19981 57a11ea4-9604-0410-9ed3-97b8803252fd
16 years ago
Christian Stimming
7c76425cbf
Bug #637346 : Adding python-bindings to doxygen documentation
...
Patch by Christoph Holtermann.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19956 57a11ea4-9604-0410-9ed3-97b8803252fd
16 years ago
Mike Evans
5d1e22bf92
Adds checking of gnc_commodity_namespace in glists
...
In src/base-typemaps.i check for return type gnc_commodity_namespace is added
so that it is returned instead of gnc_type_monetary.
Thanks to Christoph Holtermann for the patch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19944 57a11ea4-9604-0410-9ed3-97b8803252fd
16 years ago
Mike Evans
0607593792
Add PriceList to typemap for Python bindings
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19915 57a11ea4-9604-0410-9ed3-97b8803252fd
16 years ago
Christian Stimming
4b3ef0786d
Add scheme/swig typemap for GDate.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19530 57a11ea4-9604-0410-9ed3-97b8803252fd
16 years ago
Geert Janssens
64efd1f35c
Fix compiler warning
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19415 57a11ea4-9604-0410-9ed3-97b8803252fd
16 years ago
Geert Janssens
fe928cda93
Bug 625976 - Python Bindings Patch for Transaction.GetImbalance(), patch by Mark Jenkins
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19401 57a11ea4-9604-0410-9ed3-97b8803252fd
16 years ago
Christian Stimming
a322015eb8
Rename the type GUID into GncGUID because on Windows, the system headers have a type GUID which clashes with ours.
...
Note that only the type was renamed, but not any enums or function names.
Hence, the scheme wrappers should be unchanged completely (hopefully).
Discussed at http://lists.gnucash.org/pipermail/gnucash-devel/2010-March/027679.html
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18969 57a11ea4-9604-0410-9ed3-97b8803252fd
16 years ago
Geert Janssens
35c352d09b
Fix bug #582325 by refactoring some deprecated guile functions:
...
SCM_BOOLP -> scm_is_bool
SCM_NULLP -> scm_is_null
SCM_FALSEP -> scm_is_false
SCM_NFALSEP -> scm_is_true
SCM_VECTORP -> scm_is_vector
SCM_NUMBERP -> scm_is_number
SCM_CONSP -> scm_is_pair
SCM_STRING_CHARS -> scm_to_locale_string
Specifically the replacement of SCM_STRING_CHARS with scm_to_locale_string fixes Bug #582325
Additionally, I have renamed these internal functions for global consistency:
SCM_PROCEDUREP -> scm_is_procedure
SCM_LISTP -> scm_is_list
SCM_EXACTP -> scm_is_exact
SCM_EQUALP -> scm_is_equal
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18541 57a11ea4-9604-0410-9ed3-97b8803252fd
17 years ago
Charles Day
0c09333ce8
Bug #570887 : Change the swig type mapping for GUID* so that Scheme can tell the difference between a GUID* that is NULL, and a GUID* pointing to storage containing the "null" GUID. Previously the former case returned SCM_UNDEFINED to Scheme, which would unbind Scheme variables and make crashes. Now SCM_BOOL_F is used instead, and Scheme code can check for a NULL by comparing to #f.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17939 57a11ea4-9604-0410-9ed3-97b8803252fd
17 years ago
Christian Stimming
bd145a3416
Updated python bindings (r17263) for the gnucash API as of 2008-06-06.
...
Copied from http://savannah.nongnu.org/projects/python-gnucash .
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17284 57a11ea4-9604-0410-9ed3-97b8803252fd
18 years ago
Andreas Köhler
5e325fa41d
#483796 , Fancy Invoice: Convert the elements of an AccountValueList when wrapping.
...
GLIST_HELPER_INOUT does not touch the single elements and
GncAccountValue typemaps do not work here.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16554 57a11ea4-9604-0410-9ed3-97b8803252fd
19 years ago
Chris Shoemaker
0866a83d33
Add a custom SWIG typemap for wrapping a return value of (char *)NULL
...
as an empty guile string.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15113 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Andreas Köhler
7ebf6b80b7
Add swig base-typemap double gdouble. gnc-progress-dialog-set-value
...
should work again now.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15096 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Chris Shoemaker
838ff86fbd
Factor out some common typemaps into src/base-typemaps.i
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15026 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago