CVS update: gnucash/src/engine
Derek Atkins
warlord at MIT.EDU
Thu Jun 12 01:14:05 CDT 2003
The reason I have for moving the EntityTable is that a GNCBook* has a
GUID, and GNC-Events are keyed off the creation/destruction of GUIDs
(including Books). As events use the Entity Table, the Entity Table
should last through a session and not be tied to a specific book
(since events are also tied to a session, not specifically to a book).
Try running File -> Open Recent and open a different data file.
Notice the warning you get about id_type == NULL? Moving the entity
table would fix that.. I think there may be another way to fix it but
I haven't looked at it too hard, yet. I plan to look at it soon.
I may not have to move the entity table, but I'd like to. If nothing
else I think I'd really like to restructure it from a single
GHashTable into a hash-table of hash-tables... But I dont know how
well that would work.
-derek
linas at linas.org (Linas Vepstas) writes:
> On Mon, Jun 09, 2003 at 03:14:26PM -0400, Derek Atkins was heard to remark:
> > FYI, I'm planning to move the entity table out of the book and into
> > the session...
>
> Why? Gut reaction is that that would be wrong: the 'session' is
> supposed to be an ephemeral thing, for hooking up the gnc-engine
> to some particular data store.
>
> In particular, I've tried to design things so that one book could
> sit in several sessions, so that e.g. one could implement a copy
> command, or mirroring. Also, I'd always envisioned that if there
> was a networked gnucash, then it could work when disconnected,
> and resync backup with the backend when the connection was
> re-established (and meanwhile save to a temp file).
>
> If you moved the entity table to session, then you'd loose all
> of your data if a session is torn down .... as currently happens (??)
> when you save to a different file than you used to save to ...
>
>
> --linas
>
> > > Modified Files:
> > > gnc-book.h gnc-book-p.h
> > > Log Message:
> > > need to expose the entity table
>
> --
> 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
--
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
mailing list