automatic ex/import of data
warlord at MIT.EDU
Wed Jun 9 12:18:08 EDT 2004
"Tomas Pospisek's Mailing Lists" <tpo2 at sourcepole.ch> writes:
>> > 1. do there exist hooks where a script or external application can be
>> > called when a transaction is entered?
>> Maybe currently... But this is something that SHOULD be added.
>> You could base this on the running events -- but those aren't available
>> to scripts, only to plug-in C code.
>> Note that you CAN implement a gnc module to do your work and plug that
>> in at runtime. That might be your best bet.
>> > 2. is there a possiblity to call gnucash through some kind of RPC, from
>> > the command line or as a daemon to add a transaction?
>> Not currently...
>> > If the previous two things are not doable from outside of Gnucash
>> > (through scripts or similar), how much of an effort would it be to
>> > add such hooks into and out of Gnucash?
>> They are not doable today. #1 would be relatively easy to add, but #2
>> would be more difficult.
> Could you give me an estimate on how long #1 and #2 would take for someone
> that is *not* familiar with gnucash's internals?
Hmm, I dont know. I suspect that #1, adding hooks into the objects
for callbacks at various stages would be relatively easy, maybe a week
or two of work to learn where to do it in the qofobject code in CVS
HEAD. And then maybe a bit more to flush it out and make sure it's
#2 is probably going to take a LOT longer. GnuCash just isn't set up
to have external callers. I suspect that's a number of months worth
of work, at least.
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord at MIT.EDU PGP key available
More information about the gnucash-devel