Commit Graph

13543 Commits

Author SHA1 Message Date
John Ralls
88e16264dd Bug #589954: No blank split after creating a new account "on the fly" while editing a transaction.
Cause was that gnc_split_register_get_account_by_name() turned of "full_refresh" if the account didn't already exist and turned it back on only if the name of the account actually created in the new account dialog box differed from the one originally entered in the transaction.

Since "full_refresh" isn't manipulated much, that effectively shut down the ledger for further editing. Probably not what the original author intended!



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19847 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-19 22:22:01 +00:00
John Ralls
89a3d07b20 Fix error in r19822 which prevented creation of postgres databases.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19832 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-18 21:21:57 +00:00
Geert Janssens
29414038fe Splash screen: minor code cleanup
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19831 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-18 20:39:57 +00:00
Geert Janssens
c3effeb228 Bug #634906 - Re-enable splash screen preference option
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19828 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-18 17:17:32 +00:00
Geert Janssens
ac654c607b Bug #633550 - Help and concepts guide are missing from the prebuilt binary (because xsltproc chokes on undefined entities)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19827 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-18 15:33:53 +00:00
Geert Janssens
5b180dec10 Bug #609581 - Gnucash 2.3.8 offers to create db and then fails to do so
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19824 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-17 21:38:28 +00:00
John Ralls
fb53d8a463 Bug 628409: SQL coerces identifiers to lowercase, but postgres's C interface is case sensitive.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19822 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-17 02:14:13 +00:00
John Ralls
115e0aeaa6 Bug 592643: Set standard_conforming_strings on postgresql databases.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19821 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-17 01:31:37 +00:00
John Ralls
24b4493e2b Bug 634964: Crash in pgsql_error_fn. The dbi_conn isn't set if the server refuses the connection, so protect dereferences from null pointers.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19820 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-17 00:10:16 +00:00
John Ralls
1b26fa2bcb Fix python samples to work with reordered Session.__init__() args
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19819 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-16 22:07:58 +00:00
Christian Stimming
150c3dae48 Fixed aqbanking transaction type on importing DTAUS online transfers.
Patch by Manfred Usselmann.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19818 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-16 20:55:50 +00:00
Geert Janssens
45b97d6fdf Disable Italian docs generation I just accidentally enabled. It
wasn't enabled before the xsltproc issue popped up, so it shouldn't
be enabled now.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19817 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-16 09:06:36 +00:00
Geert Janssens
6ec1a4ee93 Reactivate English docs generation in Windows build
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19816 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-16 09:06:25 +00:00
Geert Janssens
4e0cedc096 Bug #634357 followup: convert New and Open submenus into plain menus
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19815 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-15 22:53:18 +00:00
Christian Stimming
a12cc790b1 When preparing imported DTAUS jobs, check their availability as well.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19814 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-15 19:37:24 +00:00
John Ralls
c5821ef5fa Fix misplaced comment in gnome-utls/gnome-file.c from 19798
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19813 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-15 19:29:18 +00:00
John Ralls
0e9049458c Make arguments to Session.__init__() have the same order as to qof_session_begin() to reduce potential confusion.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19812 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-15 19:10:19 +00:00
Cristian Marchi
17005a6dde Updated dutch translation, copied from Translation Project
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19811 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-15 13:02:09 +00:00
Christian Stimming
cb0c64dee6 Fix typo in AUTHORS, as pointed out by Mike himself.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19810 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-14 21:14:46 +00:00
Christian Stimming
080f38072a Add Mike Evans to AUTHORS as he has been providing patches regularly.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19809 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-14 19:29:43 +00:00
Christian Stimming
807d195242 Bug #634812: Improve backend error reporting for Session begin
Patch by Mike E:

The current error feedback to a python scrpt/user looks something like:

call to begin resulted in the following errors, (7,)

This change in gnucash_core.py makes the feedback similar to:

call to begin resulted in the following errors, ERR_BACKEND_LOCKED

This is less cryptic and aid debugging of user python scripts.  My only
issue though is whether this would break existing user scripts where checking
of this error code is used for flow control.  Although since the ERR_ codes are
imported with gnucash_core_c it *should* have no effect.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19808 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-14 13:30:16 +00:00
Christian Stimming
5816a971ce Cutecash: Adapt to changed session_begin in r19798.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19807 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-14 13:16:31 +00:00
Christian Stimming
ec6412f3c9 Bug #634357: Further menu ui cleanup: Reserve File New/Open menu only the file-related items anymore.
The menu items under "File" should relate only to the file (database),
not to anything within a file. The open/new for all other things (budget,
invoice, account) have been moved somewhere else.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19806 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-14 13:05:43 +00:00
Christian Stimming
530802c999 Win32 build: Update versions of libktoblzcheck, gwenhywfar4.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19805 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-13 21:32:18 +00:00
Christian Stimming
3888ebac16 Fix crash when using the function "Import DTAUS and send". The actual function is still implemented, though.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19804 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-13 21:23:06 +00:00
Christian Stimming
0b0deee99f Minor fix of r19802, bug#634673: config.h is in builddir, not srcdir; add last .i file dependency.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19803 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-13 21:22:55 +00:00
John Ralls
2a8afe8a3c Bug 634673: Add dependency information & fix typo in python-bindings Makefile.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19802 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-12 19:02:09 +00:00
John Ralls
72a014d5c9 Add force_new parameter to GnuCashCoreClass.__init__, reflecting change to qof_session_begin() in r19798
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19801 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-12 18:37:59 +00:00
John Ralls
b334c7ffb2 Bug 634392: New sql database raises clobber warning
A fairly extensive change, because I changed may_clobber from a global 
qof function (which passed through qofbackend and fetched up in the 
actual backends) to a local static in the individual backends which 
raise a new qof_backend_error, QOF_ABCKEND_STORE_EXISTS. This was 
necessary to reorder the existence check before the lock, because with 
the sql backends, locking creates the database... which then would 
return may_clobber as true, even though it really wasn't.

New parameter "force" added to session_begin() functions, and 
"create_if_nonexistant" is renamed to simply "create". The reason for 
the latter is that the file/database is created regardless of whether it 
already exists; that's what the clobber check is about. The new "force" 
parameter is set to true the second time through, after the user has 
responded to the clobber dialog indicating that the data should be 
destroyed.

Many of the extraneous changes are just adding the new parameter to the 
session_begin() calls.

gnc-file changes to handle the error in favor of calling the 
no-longer-existing qof_check_may_clobber_data() call after 
session_begin().

Two minor changes to gnc_file_do_save_as: gnc_add_history and 
gnc_hook_run are now called on new_session instead of old_session; this 
ensures that the new file/database is used at the next startup of 
gnucash. Second, the filename/url is filtered before displaying the 
"may_clobber" dialog box to prevent displaying plaintext database 
passwords.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19798 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-11 06:12:20 +00:00
Christian Stimming
76da42522e Bug #634165: Better dealing with a locked database in python
Patch by Christoph Holtermann:

For the second enhancement proposal i have attached a simple patch which adds
the argument ignore_lock to Session.__init__() which is passed through to
qof_session_begin.

This patch extends the function Session.__init__() with ignore_lock

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19795 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-10 19:49:21 +00:00
Christian Stimming
98b42582ca Bug #634357: Move the Budget Open/New menu items to Actions -> Budget -> New Budget / Open Budget because they have nothing to do with the file menu.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19794 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-10 19:49:09 +00:00
Cristian Marchi
c505a6b154 Updated dutch translation, copied from Translation Project
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19786 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-10 07:12:30 +00:00
John Ralls
cc2c20a1de Bug 634334: Check that subdir argument really is one of the two cases
we can handle. Wrap fileURLWithPath in @try/@catch so that we don't
crash when it throws.

Free bonus fix: If "en" is the language and doesn't have a translation, force the C locale.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19785 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-09 18:50:58 +00:00
John Ralls
f0a7805f27 Bug 634334: Crash on selecting New User Tutorial from new user dialog.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19784 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-09 17:55:30 +00:00
Christian Stimming
74bc164f73 Bug #633942: Fix "nil" column header on single account report
When I open a report window (barchart in the example) and select only one
account, I get a column header saying "nil" near the only data column.

Someone accidentally wrote "nil" instead of the empty list '().

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19783 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-08 20:46:28 +00:00
Christian Stimming
632637c2e9 Minor update of German translation.
In the "bills due" dialog we use Bill -> Rechnung, not Lieferantenrechnung.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19782 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-08 20:31:42 +00:00
Christian Stimming
75f38a3d91 Bug #634252: Re-enable the splash screen if the user selects open anyway
If during startup a file or database turns out to beeing locked the user is
presented a dialog with the options to open anyway, create a new file or abort.
This dialog, however, closes the splash screen. This may cause confusion,
because file loading and report generation may still take quite some time.

Patch by Herbert Thoma.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19781 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-08 19:45:43 +00:00
Christian Stimming
861713c0be Increase gnutls version to 2.8.6 (might fix bug#632158)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19780 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-08 19:40:23 +00:00
Phil Longstaff
876350d348 Fix stupid mistake when I checked in the configure.ac with new version#.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19766 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-06 21:35:20 +00:00
Phil Longstaff
0e6f29c3ac Update revision # to 2.3.16
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19764 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-06 20:33:27 +00:00
Phil Longstaff
05cae77e13 Add 'test-dbi-business' to svn:ignore
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19763 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-06 20:20:26 +00:00
Phil Longstaff
323c83b766 Add test-dbi-business-stuff.h to EXTRA_DIST so "make distcheck" passes
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19762 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-06 19:50:57 +00:00
Cristian Marchi
5cb7b9dd30 Updated Latvian translation by Valdis Vītoliņš.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19759 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-06 07:21:13 +00:00
Christian Stimming
28a1e01373 Really fix error in sx_get_num_occur for SX which are limited by num_occur.
Follow-up to r19757 which was incomplete. Hopefully I now really got everything.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19758 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-05 21:49:17 +00:00
Christian Stimming
93137a0cb9 Fix error in sx_get_num_occur for SX which are limited by num_occur.
The last occurrence wasn't counted because it was still valid
but turned num_occur_rem to zero, hence the counting stopped one too early.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19757 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-05 21:36:58 +00:00
Christian Stimming
f55706ecaf Fix error in dense-cal widget where the last occurrence of a SX wasn't displayed.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19756 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-05 21:36:41 +00:00
John Ralls
e74bee61b4 Fix the errors, reduce the noise when testing the dbi backend
* Check for a null gdate before attempting to make it a string. Fixes a bunch 
  of CRIT errors.

* Comment out the log debug setting in dbi. It's stable enough that it 
  shouldn't be needed routinely. It can, of course, be enabled from the command 
  line.

* Add a notice to ignore the warnings about there being no lock on the 
  database when session 3 is closed. Session 3 has to be run with ignore 
  locking or it won't run at all.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19755 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-04 18:37:36 +00:00
John Ralls
88b0e265b6 Fix business-core tests so that all pass
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19754 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-04 17:31:18 +00:00
John Ralls
d40faca9f9 Bug 632346: Fixed test failures in dbi
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19747 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-03 00:28:28 +00:00
John Ralls
cbc0ae0785 Updated tests matching the xml backend as of 2011-11-02
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19746 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-02 23:07:48 +00:00