Remove Bill/Vendor

Linas Vepstas linas at linas.org
Thu Mar 27 17:03:46 CST 2003


On Wed, Mar 26, 2003 at 11:30:29AM -0500, Derek Atkins was heard to remark:
> The problem is that you would need a hook into every FooCommitEdit()
> function, and then some way to walk in reverse.  

Yes, that's exactly it.  I didn't say its not a fair bit of work.

> Also note that the
> only data object that keeps track of its original state between
> BeginEdit() and CommitEditis() a Transaction.

It also makes me think in nebulous programming terms: 
-- where can I find a language or system with the popularity &
robustness of C, but still allows me to describe a struct
so that at beginEdit() I could say "remember thyself", and then
at commitEdit() be able to simply say "save thyself to the audit trail".

You may have noticed the rather unpleasently large complexity in
CommitTransaction(), which I don't like.  But I don't think there's
any other way, at least not in C (except possibly some interesting stunt
using gnome  glib gobjects).

while on topic: there *may* (??) be some benefits to converting
gnucash structs to glib gobjects.  I'm not sure what these are, just
yet, but if you had time to play, this might be a worthy game ...

--linas


-- 
pub  1024D/01045933 2001-02-01 Linas Vepstas (Labas!) <linas at linas.org>
PGP Key fingerprint = 8305 2521 6000 0B5E 8984  3F54 64A9 9A82 0104 5933


More information about the gnucash-user mailing list