2012-05-11 GnuCash IRC logs

00:21:10 *** ErKa has joined #gnucash
00:45:29 *** mcepl has left #gnucash
01:18:06 *** ErKa has quit IRC
01:48:47 *** Mattman has joined #gnucash
01:48:56 <Mattman> hello
01:49:05 <Mattman> how are you guys?
02:24:04 *** Mattman has quit IRC
03:20:13 *** fell has quit IRC
03:23:02 *** fell has joined #gnucash
03:23:03 *** gncbot sets mode: +o fell
05:00:22 *** letic_away is now known as letic
05:01:20 <letic> warlord-afk: yeah I realised that :) that's my problem actually
05:02:18 <letic> warlord-afk: the C code expect a GncEntry const * but python send him a GncEntry
05:02:35 <letic> I don't know how the casting works with the C wrapper...
05:13:17 *** letic has quit IRC
05:49:04 *** letic has joined #gnucash
07:19:07 *** nomeata has joined #gnucash
08:16:36 *** fell has quit IRC
08:41:18 *** benoitg has joined #gnucash
08:51:22 *** warlord-afk is now known as warlord
08:51:44 <warlord> letic: it's perfectly legal to pass a GncEntry into a GncEntry const*.
08:52:08 <warlord> It's only a problem the other way around, assigning a GncEntry const* to a GncEntry* (as a return value)
08:52:20 <warlord> (e.g. a const return value)
09:04:56 *** kpreid has quit IRC
09:09:00 *** benoitg has quit IRC
09:17:34 *** benoitg has joined #gnucash
09:19:41 <letic> warlord: this is the python bindings error I am getting :
09:19:43 <letic> Traceback (most recent call last):
09:19:43 <letic> File "invoice.py", line 205, in <module>
09:19:43 <letic> qty = GncNumeric(instance=entry.GetQuantity()).to_double()
09:19:43 <letic> File "/usr/local/lib/python2.7/dist-packages/gnucash/function_class.py", line 91, in method_function
09:19:43 <letic> *process_list_convert_to_instance(meth_func_args) )
09:19:44 <letic> File "/usr/local/lib/python2.7/dist-packages/gnucash/gnucash_core_c.py", line 4074, in gncEntryGetQuantity
09:19:46 <letic> return _gnucash_core_c.gncEntryGetQuantity(*args)
09:19:48 <letic> TypeError: in method 'gncEntryGetQuantity', argument 1 of type 'GncEntry const *'
09:21:22 <warlord> That sounds like a Python issue, not a C issue.
09:21:38 <warlord> It sounds like Python doesn't understand that you can pass a GncEntry* intro a GncEntry const *
09:21:45 <warlord> That's perfectly valid C
09:22:15 <warlord> Sounds like a wrapper issue.
09:22:23 <warlord> I recommend you send this to gnucash-devel
09:23:03 <letic> yes that's what I thought I think there is an issue in the wrapper
09:23:21 <letic> ok no problem I will send this to the ML
09:23:25 <warlord> Could be, which is beyond my ability
09:23:38 <letic> no worries :)
09:23:43 <warlord> or file a bugzilla report. Or both.
09:23:57 <warlord> I'm surprised that the tests done detect this.
09:23:59 <warlord> dont
09:24:04 <warlord> (well, maybe i'm not that surprised)
09:24:11 <letic> he he
09:24:24 <letic> well the rest (invoice creation, etc) is working
09:24:46 <letic> it's just when trying to retrieve an entry to put it in a pdf that we get the error
09:25:03 <warlord> well, that should work, too..
09:25:10 <warlord> and it is a bug that it doesn't.
09:25:18 <warlord> but... why not use one of the existing invoice reports?
09:25:35 <warlord> why not hack on the e-guile invoice template?
09:26:14 <letic> to be honest as was just trying to deploy it on our server (hence the need for a gui-less) gnucash
09:26:25 <letic> it is one of my colleague who did the script
09:26:47 <letic> he told me that the python-bindings didn't support pdf printing
09:26:56 <letic> so he went with python-reportlab
09:27:26 <warlord> oh. hm
09:29:21 <letic> is there a way to use guile through the python bindings ?
09:32:12 <letic> I meant the invoice template ?
09:35:38 *** strk has left #gnucash
09:40:06 <warlord> the invoice template that exists is scheme, not python. You're talking apples and oranges. No, there is no way to run a scheme report from the python bindings, AFAIK
09:43:11 <letic> sorry warlord I don't know scheme that's why... I saw the lisp syntax opening one of gnucash source file and ran away ;)
09:43:23 * letic is kidding
09:43:40 <letic> I use to love lisp in college but haven't done any in too long
09:49:21 *** benoitg has quit IRC
09:50:15 <warlord> It's simple. And it's more integrated (and tested!) than the PY bindings.
09:50:34 <warlord> ... although you are right that it doesn't really work gui-less
09:50:55 <letic> hum ok
09:51:01 <letic> we will have a look then
09:51:08 <letic> thanks a lot for the info warlord
09:51:26 *** ErKa has joined #gnucash
09:52:35 <warlord> you'rewelcome.
10:04:24 *** nomeata has quit IRC
10:26:15 *** benoitg has joined #gnucash
10:42:59 *** fugitive68 has joined #gnucash
10:43:31 *** benoitg has quit IRC
11:16:21 *** mikkom_ has quit IRC
11:26:15 *** micols has quit IRC
11:41:00 *** benoitg has joined #gnucash
12:03:06 *** fugitive68 has quit IRC
12:37:00 *** fell has joined #gnucash
12:37:00 *** gncbot sets mode: +o fell
12:39:41 *** letic has quit IRC
12:41:36 *** benoitg has quit IRC
12:52:31 *** benoitg has joined #gnucash
13:13:15 *** ErKa has quit IRC
13:27:34 *** kpreid has joined #gnucash
13:29:22 *** benoitg has quit IRC
13:41:25 *** fell_ has joined #gnucash
13:41:26 *** gncbot sets mode: +o fell_
13:49:47 *** fell has quit IRC
13:53:54 *** ErKa has joined #gnucash
14:01:27 *** strk has joined #gnucash
14:08:19 *** benoitg has joined #gnucash
14:18:11 *** benoitg has quit IRC
14:21:23 *** benoitg has joined #gnucash
14:24:51 *** benoitg has quit IRC
14:27:40 *** benoitg has joined #gnucash
14:28:46 *** fell__ has joined #gnucash
14:28:47 *** gncbot sets mode: +o fell__
14:36:53 *** fell_ has quit IRC
15:37:36 <strk> on nice
15:37:42 <strk> closing the window leaves the process on
15:41:23 <strk> the lock (dbi) is gone
15:41:27 <strk> but the process is alive
15:41:35 <strk> next
15:43:37 <strk> stuck in polling #5 0x00007f82e3e4f410 in gnc_post_file_open (filename=<value optimized out>) at gnc-file.c:840
15:43:57 <warlord> "on nice"?
15:51:23 *** ErKa has quit IRC
16:02:19 <strk> typo, was "oh nice" (sarcastic)
16:02:32 <strk> I think it's related to the postgresql backend
16:02:46 <strk> at least, never had a problem before
16:11:33 <warlord> No clue.
16:11:37 <warlord> I dont use the SQL backends
16:59:55 *** ErKa has joined #gnucash
17:11:06 *** benoitg has quit IRC
17:37:32 *** markjenkinsparit has quit IRC
18:47:54 *** ErKa has quit IRC
19:30:47 *** rpg has joined #gnucash
19:33:46 *** kpreid has quit IRC
20:22:00 *** ErKa has joined #gnucash
20:44:28 *** fell__ has quit IRC
21:06:29 *** ErKa has quit IRC
21:57:42 *** benoitg has joined #gnucash
23:23:11 *** warlord is now known as warlord-afk