Rob Browning wrote:
> [EMAIL PROTECTED] writes:
> 
> > I'm having a bit of a time figuring out the "parsing" of account
> > lists (e.g. - the care and feeding of gnc:group-map-accounts, and so
> > forth), and figure that interacting directly with a Scheme reader is
> > liable to be more useful than the much more batch-like
> > "edit/run-gnucash/test" loop.
> 
> You might also, if you haven't want to look at my text-export code.
> You probably saw that, but if you didn't...

Yes, I've been looking at that.  Fairly helpful stuff.

After some further fiddling, I now seem to be able to successfully
get the existing account names, and have my "first cut" at translation
table.  That is, I take the items from the QIF file, and, for each
one, come up with a list of existing accounts that somewhat match.

Next step involves mapping through the list of accounts, and asking the
user to pick a favorite account.  This probably mandates creating a
GTK dialogue looking something like:

======================================================
Category Translation Selection

QIF file category "Rent" had 17 entries in the file.
Best matches included:
[ Rent ]         Exact match
[ Auto Rent ]    Partial match
[ Restaurants ]  First letter match
[ null ]         Item from Category list
[ Pick from Category List ]
[ Create new category for this item ]    
======================================================

where the [braces] indicate a button that one would press to select
the option given.

I can probably "Glade" a function into place for this, although the
"query Category list" items are liable to be hairy...

> > I'm sure that how to do this is hiding some place in the archives,>
> > I'm sure that how to do this is hiding some place in the archives,
> > unfortunately there sure are a lot of messages out there...
> 
> Check the README.  I updated it a little while back to mention the new
> startup behavior.  Basically, it's a lot simpler to do what you're
> asking now than it used to be.  Look for GNC_RUN_AS_SHELL.  If that
> doesn't do what you want (or if you'd just prefer something
> different), then let me know and we'll design something better.
> You're about to make yourself the guinea pig for this feature :>

Of course it would be in the main README...  Teaches me to not look
close enough...

> Note that the interactive session only works if you don't want to run
> the GUI.  Right now, if you launch the UI, there's no way to come back
> to the prompt.  I'm not sure how hard that would be to fix, but it
> might be difficult.  It might be a lot easier to bring up an
> interactive guile prompt in a GTK window if a non-UI prompt isn't
> enough right now.

I suspect that guile-in-window is liable to be really quite useful for
debugging scripts as it allows me to be reasonably sure that I've got
the same environment that I see if I load the register.

I'll see how it goes without it.
--
Christopher B. Browne, [EMAIL PROTECTED], [EMAIL PROTECTED]
Web: http://www.ntlug.org/~cbbrowne  SAP Basis Consultant, UNIX Guy
Windows NT - How to make a 100 MIPS Linux workstation perform like an 8 MHz 286
----- %< -------------------------------------------- >% ------
The GnuCash / X-Accountant Mailing List
To unsubscribe, send mail to [EMAIL PROTECTED] and
put "unsubscribe gnucash-devel [EMAIL PROTECTED]" in the body

Reply via email to