to retrieve the QofBook from the session, instead of storing the
book in the backend object.
- Where be->book was used, use pgendGetBook() instead.
- Enhanced debug messages.
* src/backend/postgres/PostgresBackend.h: Added the qofbook.h
include, and the pgendGetBook() prototype
* src/backend/postgres/book.c: Changed pgendGetBook to
pgendBookRestore() to reflect its functionality of restoring
the book's data to the engine.
* src/backend/postgres/price.c: In pgendPriceFind(), couched the
currenct portion of the SQL statement in an "if" statement,
because gnc_pricedb_lookup_latest_any_currency() can pass in
a NULL currency, and stpcpy() doesn't like NULLs.
* src/backend/postgres/escape.c: enhanced debug messages.
Fixes bug #116546
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8953 57a11ea4-9604-0410-9ed3-97b8803252fd
when we hit a READONLY error.
* src/backend/file/gnc-backend-file.c: return ERR_BACKEND_READONLY
on save if the XML write fails and the unlink() fails with
ENOENT, EPERM, EROFS, or EACCES.
* src/engine/qofsession.c: don't call end_session just because
there's an error.
Fixes#117657
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8949 57a11ea4-9604-0410-9ed3-97b8803252fd
chown() functions fatal errors. Warn the user if they fail, but
don't fail to save. In the long run we need some way to pop up
warning messages from a backend, but until then we'll have to
stick with PWARN() and hope users see the console.
Fixes#118258
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8947 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/engine/gw-engine-spec.scm: add new error type
* src/backend/file/gnc-backend-file.c: differentiate between
"file is already locked" and "we can't create the lockfile"
so we can let the user know.
* src/app-file/gnc-file.c: handle the new ERR_BACKEND_READONLY
error message by changing the error dialog presented to the
user.
Fixes#117665
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8941 57a11ea4-9604-0410-9ed3-97b8803252fd
o remove malloc/free usage of struct tm, put it on stack
o improve documentation
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8935 57a11ea4-9604-0410-9ed3-97b8803252fd
more work on the new qif importer. structure it into a parent
context that contains a "list of files" (each file has its own
context). Add some tests to actually test the code. It
actually loads a basic qif file, now. Still need to perform
merging (internal and into GNC) as well as the qif-to-gnc maps.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8914 57a11ea4-9604-0410-9ed3-97b8803252fd
more work on the new qif importer. structure it into a parent
context that contains a "list of files" (each file has its own
context). Add some tests to actually test the code. It
actually loads a basic qif file, now. Still need to perform
merging (internal and into GNC) as well as the qif-to-gnc maps.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8913 57a11ea4-9604-0410-9ed3-97b8803252fd
backend error directly after calling gnc_file_be_get_file_lock(),
as get_file_lock will set the backend error itself.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8901 57a11ea4-9604-0410-9ed3-97b8803252fd
add more text to make it more clear what's going on. Hopefully
fixes#104878.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8888 57a11ea4-9604-0410-9ed3-97b8803252fd
and action of Invoice and Payement Transactions/Splits, to make
it easier to print a check off the posted transactions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8887 57a11ea4-9604-0410-9ed3-97b8803252fd
errors, and add more precision to the price. There is still a
problem when acquiring a high-precision price out of the pricedb
where it will get truncated in the AmountEdit widget.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8880 57a11ea4-9604-0410-9ed3-97b8803252fd
(written-in-C) QIF importer. The code compiles but has not
been tested. Yet to do: merging, conversion to gnc, and UI.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8873 57a11ea4-9604-0410-9ed3-97b8803252fd