Web interface for gnuCash

Christian Stimming stimming at tuhh.de
Tue Aug 8 10:56:50 EDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Conrad Canterford schrieb:
> On Tue, 2006-08-08 at 15:36 +0200, Graham Leggett wrote:
>>> You cannot fault them for rejecting any suggestion that they should
>>> devote the next several years worth of their precious development time
>>> to your suggestion instead of working on issues and features which are
>>> affecting them or which they believe are important.
>> Several years? All I suggested was that Gnucash would be more useful if it
>> could export data in an easier fashion, and if this export could be done
>> from the command line. Given these two relatively simple features, info
>> could be automatically published to a webserver by cron, no need for any
>> sledgehammer web application solutions.
> 
> Hmmm. Well, that was certainly not my understanding of what was being
> suggested. I realise I don't always pay as much attention here as I
> ought to, but Derek's suggestion that you consider SQL Ledger implies to
> me that he also believed you were suggesting a full-on web app. Just
> regularly producing html reports and cron jobbing them into a spot in
> your apache htdocs tree is a more achievable goal - but still
> non-trivial.

Exactly. If you want to look into "export data by command line", here
are a few suggestions:

- - Look what the "cashutil" forked project has done
http://cashutil.sourceforge.net/ ; Neil Williams started from the
gnucash source as of last fall, so it shouldn't be too different from
what we currently have. Currently that project doesn't share any code
with gnucash (anymore), but the data file format should (probably) still
be the same. So there's a realistic chance that you could use cashutil
to extract some data from your gnucash data file, in the form that you want.

- - (I assume you are slightly familiar with the scheme programming
language. If not, would be a good read.) Look into how the "TXF Export"
can export TXF files. src/reports/locale-reports/us/taxtxf.scm. The
export-thunk calls generate-tax-or-txf with tax-mode? argument #f. You
will then see how that argument is used to either write something to a
file, or show some HTML.

- - You would need to set up a report in scheme that is using thie
export-thunk as well to export what you want. Once you have that, we'd
"only" need to add command line switches to not open the GUI but instead
execute this report. This shouldn't be too difficult.

> As a personal aside, I would love to be able to import QIF data into
> gnucash as a command line app. 

This feature has been mentioned multiple times already. I know it would
be a Good Thing; however, *importing* is even more complicated, see
http://bugzilla.gnome.org/show_bug.cgi?id=345744 :-)

Christian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQCVAwUBRNimMmXAi+BfhivFAQLAaAP+KVhtdHgsuB0MgxJX34S0reevvzSYLNNM
xAmo+APi3G2qoMsIt6NKEvtDS5eRyAdmFaoVqaciL0xl9xIBV63YIOxWnjZ9Br+s
O0xUveUkc360klnU/3vnTeLNHj1bvSbO6RPJjRvhac1fFgnvaUjNT1N+Dq7cXxi2
0B30QGcDCgI=
=uu60
-----END PGP SIGNATURE-----


More information about the gnucash-devel mailing list