Re: Compiling GnuCash on Windows

2006-11-01 Thread Derek Atkins
Brian Blatnik [EMAIL PROTECTED] writes:

 - Creating a new file (with default account hierarchy)

 This doesn't work for me.  I do File - New File and I get an empty window.
 It doesn't pop up the druid or anything.

 [BB] Works for me, as long as Perform account list setup on new file is
 checked in Preferences -- General (default is unchecked)

Ahh...  Perhaps this means the preferences aren't being found?
This should default to 'true'.

-derek
-- 
   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
   [EMAIL PROTECTED]PGP key available
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: GC architecture for backends

2006-11-01 Thread Derek Atkins
The QOFBackend interface is documented in the Doxygen docs.
The rest of it, however, hasn't been well documented.

I do not believe that gnc-engine.c should load the module -- it should
get loaded elsewhere.  If that's where stuff is being loaded now then
I think that's a bug.

I dont think there's currently a plugin registry of URI types.  We
might want to fix that, maybe.

Also, we'll need to make changes to handle the fact that file://
should get redirected to sqlite:// -- but the code will need to
test the file first to see what kind of file it is, so that File - Open
does the right thing.   I.e., the fact that we're using SQLite
should get hidden from the user when we migrate to it.

-derek

Phil Longstaff [EMAIL PROTECTED] writes:

 I've started to look at what is needed to put a new backend into GC.  My
 first questions is if this is documented anywhere.  I've needed to
 update a few different files, and wonder if it couldn't be improved so
 that each backend only needs to be known about in one place.  For
 example, gnc_engine_init() in engine/gnc-engine.c needs to be modified
 to ensure the backend module is loaded and registered with qof.  Then,
 xaccResolveURLs() in engine/gnc-filepath-utils.c needs to be modified to
 know about any new URI types (mysql://, sqlite://).  Seems to me that
 after all of the backends are loaded, the engine should query all of the
 providers so it would know about the URI types.

 Phil

-- 
   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
   [EMAIL PROTECTED]PGP key available
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


RE: Compiling GnuCash on Windows

2006-11-01 Thread Brian Blatnik

Well, I always get the Cannot find default values dialog on startup. (I
read about that in one of the threads.) I've followed the setup as it
recommends, and here are the entire contents of my .gconf.path file:


 The following lines were added by GnuCash. 
xml:readwrite:$(HOME)/.gconf
xml:readonly:C:\GnuCash\gnucash\etc\gconf\gconf.xml.defaults
## End of lines added by GnuCash. ##

 The following lines were added by GnuCash. 
xml:readonly:C:\GnuCash\gnucash\etc\gconf\gconf.xml.defaults
## End of lines added by GnuCash. ##

 The following lines were added by GnuCash. 
xml:readonly:C:\GnuCash\gnucash\etc\gconf\gconf.xml.defaults
## End of lines added by GnuCash. ##

 The following lines were added by GnuCash. 
xml:readonly:C:\GnuCash\gnucash\etc\gconf\gconf.xml.defaults
## End of lines added by GnuCash. ##


Looks like evidence of my repeated attempts -- yet I still get the dialog
every time I start up. And if lines were *added* to .gconf.path, it appears
mine was completely empty before they were added. Is that normal?


-Original Message-
From: Derek Atkins [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 01, 2006 7:08 AM
To: Brian Blatnik
Cc: Christian Stimming; gnucash-devel mailing list
Subject: Re: Compiling GnuCash on Windows

Brian Blatnik [EMAIL PROTECTED] writes:

 - Creating a new file (with default account hierarchy)

 This doesn't work for me.  I do File - New File and I get an empty
window.
 It doesn't pop up the druid or anything.

 [BB] Works for me, as long as Perform account list setup on new file 
 is checked in Preferences -- General (default is unchecked)

Ahh...  Perhaps this means the preferences aren't being found?
This should default to 'true'.

-derek
-- 
   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
   [EMAIL PROTECTED]PGP key available
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Another docs bug

2006-11-01 Thread Derek Atkins
There's another image naming error in the guide.  I see these
logs on the server:

[Wed Nov 01 12:47:26 2006] [error] [client 65.206.3.249] File does not exist: 
/var/www/html/docs/guide/figures/loan_PrivateLoanSecondPaymentAccounts.png, 
referer: http://svn.gnucash.org/docs/guide/loans_personalLoanToSomeOne.html

-derek

-- 
   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
   [EMAIL PROTECTED]PGP key available
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: GC architecture for backends

2006-11-01 Thread Derek Atkins
Quoting Daniel Espinosa [EMAIL PROTECTED]:

 Also, we'll need to make changes to handle the fact that file://
 should get redirected to sqlite:// -- but the code will need to
 test the file first to see what kind of file it is, so that File - Open
 does the right thing.   I.e., the fact that we're using SQLite
 should get hidden from the user when we migrate to it.


 I think the URI mus be gda:// or db://, think that gda is wrapper for
 many DB backends not just sqlite.

At some level we need to be able to specify what kind of database is
sitting behind there.  At SOME point we need to know how to specify
a filename for SQLite vs. a host/port/user/password for PG.  So clearly
there's some differentiation there.

But this is irrelevant to what I meant.   What the user types into the
File-Open dialog does not need to be the string that gets passed the GDA.
I'm just pointing out that we need to intercept that input and handle
it appropriately, which may mean adjusting the actual string and perhaps
calling the XML or GDA-with-SQLite backends.

-derek


-- 
   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
   [EMAIL PROTECTED]PGP key available

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: GC architecture for backends

2006-11-01 Thread Daniel Espinosa
2006/11/1, Derek Atkins [EMAIL PROTECTED]:
 The QOFBackend interface is documented in the Doxygen docs.
 The rest of it, however, hasn't been well documented.

 I do not believe that gnc-engine.c should load the module -- it should
 get loaded elsewhere.  If that's where stuff is being loaded now then
 I think that's a bug.

 I dont think there's currently a plugin registry of URI types.  We
 might want to fix that, maybe.

 Also, we'll need to make changes to handle the fact that file://
 should get redirected to sqlite:// -- but the code will need to
 test the file first to see what kind of file it is, so that File - Open
 does the right thing.   I.e., the fact that we're using SQLite
 should get hidden from the user when we migrate to it.


I think the URI mus be gda:// or db://, think that gda is wrapper for
many DB backends not just sqlite.
-- 
Trabajar, la mejor arma para tu superación
de grano en grano, se hace la arena (R) (entrámite, pero para los
cuates: LIBRE)

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel