mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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
This commit is contained in:
parent
0c425e1914
commit
f16a4e3a83
@ -137,7 +137,7 @@ typedef char gchar;
|
|||||||
}
|
}
|
||||||
|
|
||||||
%typemap(out) GList *, CommodityList *, SplitList *, AccountList *, LotList *,
|
%typemap(out) GList *, CommodityList *, SplitList *, AccountList *, LotList *,
|
||||||
MonetaryList *, PriceList * {
|
MonetaryList *, PriceList *, EntryList * {
|
||||||
guint i;
|
guint i;
|
||||||
gpointer data;
|
gpointer data;
|
||||||
PyObject *list = PyList_New(0);
|
PyObject *list = PyList_New(0);
|
||||||
@ -158,6 +158,8 @@ typedef char gchar;
|
|||||||
PyList_Append(list, SWIG_NewPointerObj(data, SWIGTYPE_p_GNCLot, 0));
|
PyList_Append(list, SWIG_NewPointerObj(data, SWIGTYPE_p_GNCLot, 0));
|
||||||
else if (GNC_IS_PRICE(data))
|
else if (GNC_IS_PRICE(data))
|
||||||
PyList_Append(list, SWIG_NewPointerObj(data, SWIGTYPE_p_GNCPrice, 0));
|
PyList_Append(list, SWIG_NewPointerObj(data, SWIGTYPE_p_GNCPrice, 0));
|
||||||
|
else if (GNC_IS_ENTRY(data))
|
||||||
|
PyList_Append(list, SWIG_NewPointerObj(data, SWIGTYPE_p__gncEntry, 0));
|
||||||
else if ($1_descriptor == $descriptor(MonetaryList *))
|
else if ($1_descriptor == $descriptor(MonetaryList *))
|
||||||
PyList_Append(list, SWIG_NewPointerObj(data, $descriptor(gnc_monetary *), 0));
|
PyList_Append(list, SWIG_NewPointerObj(data, $descriptor(gnc_monetary *), 0));
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user