CVS update: gnucash/src/engine

Linas Vepstas linas at linas.org
Wed Jun 11 21:12:32 CDT 2003


On Tue, Jun 10, 2003 at 04:56:39PM -0400, Derek Atkins was heard to remark:
> ooh.. cool.

account group, pricedb and currency table now use gncObject ...

>         split -> account -> group :: is_subgroup_of(xxx)".
> 
> But this requires adding a new query predicate type, which I'd like to
> avoid if possible.  OTOH, it would be useful for "open account and all

Smells like 'relational' to me.   I think the predicates you need to
add are "has_a" and "is_a", but I'm not an expert .. I vaguely remember 
"uses_a", "child_of" and "parent_of" ... and some arguments about what 
the correct primitve predicates should really be. 

> Ideas?

as usual, I'm very short on time.  I'm pretty much done splitting out
the function I need; its currently checked into/mirrored at the 
gnotime cvs at /lib/gnc .. I'm planning on writing a few example
programs that use QueryNew.   I've also filed a sourceforge site
for 'qof' query object framework that essentially forks this code,
but my goal is to keep the code perfectly in sync and use the
sourceforge site to attract additional developers to maintin this stuff.

--linas

> > Modified Files:
> > 	Account.c Group.c GroupP.h gnc-book.c gnc-engine.c 
> > Log Message:
> > change AccountGroup to use gncObject for initialization, dirty flag, teardown.

-- 
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-devel mailing list