Commit Graph

13319 Commits

Author SHA1 Message Date
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
John Ralls
37808d5d82 Updated test files complying with the xml schema as of 2011-11-02
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19745 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-02 23:06:37 +00:00
John Ralls
1a9984eff5 Bugs 632346 & 632166: Fixup transaction currency scrubbing.
Biggest problem was that almost well-formed transactions missing a currency 
element wouldn't import correctly because the FindCommonCurrencies function 
only used the old currency values, ignoring the commodity values in the 
splits' accounts. A new function, xaccFindCommonCurrencies(), looks at those 
first and then calls xaccFindOldCommonCurrencies only if it fails. That 
addresses the cause of the import failure reported in 632166 and a big chunk 
of the warning messages complained about in 632346.

A secondary problem, also addressed in this change, was that the last block 
in xaccTransScrubCurrencyFromSplits always replaced the "amount" with the 
"value". This is the right thing to do if the commodity for the split account 
is a currency, but if it isn't, the replacement should be reversed. 



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19744 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-02 21:14:38 +00:00
John Ralls
81cc53b59b Revised handling of obsolete security elements, made log messages better.
Accounts with security elements would only use the security to update the 
commodity if there wasn't a commodity; however, the files in the tests had 
accounts which had a security and a commodity, where the commodity was a 
currency. That's wrong. so now if the commodity is a currency, the security 
will overwrite it.

Added the account name and element name to the log message to assist in 
troubleshooting, should that be needed.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19743 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-02 18:21:50 +00:00
John Ralls
ff67038cde Minor fixups to dbi backend:
* dbi_conn_error_flag is deprecated, replace with dbi_conn_error
  (Thanks, Christian).

* Switch from OS-determined HOST_NAME_MAX to locally defined
  GNC_HOSTNAME_MAX so that the field is always 255 regardless of what
  OS creates it.

* Use G_OS_WIN32 instead of naked WIN32


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19740 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-01 16:43:51 +00:00
John Ralls
a7c83bc43f Bug 629238: Part 2: Extend locking table to SQLite3.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19739 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-10-31 20:51:57 +00:00
John Ralls
48a997d370 Bug 629238: Part 1: Create a lock table for postgresql and mysql backends.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19738 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-10-31 20:31:27 +00:00
Christian Stimming
3cb14e1eb9 Win32 build: Update ktoblzcheck version number.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19734 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-10-30 19:01:22 +00:00
Geert Janssens
31315b7f5c Preferences window improvements:
* Accounting Period: reorder options so the dates are on top
* Business: reorder options to clarify which options are general and which apply to invoices or bills only
* Business: remove obscure "Number of lines" option
* Register defaults: remove obscure "Number of lines" option
* General: remove "Show splash screen" option

While removing the "Number of lines" options, I have also removed most of the code that used this option. The number of lines was used to calculate the default window size in various places in the code. The code now simply uses sensible defaults for that.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19733 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-10-30 14:55:23 +00:00
John Ralls
56fe48ec52 Bug 627831: Implements recursion into storing and retrieving nested slot frames and lists.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19729 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-10-29 22:20:00 +00:00
Geert Janssens
d1b496e9f6 Bug #630770 - Crash when connection lost using db
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19728 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-10-29 08:39:29 +00:00
Geert Janssens
74e2713c19 Some whitespace cleanups
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19727 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-10-29 08:32:07 +00:00
Cristian Marchi
e9ca0afd83 Updated British English translation by Mike Evans.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19710 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-10-28 18:54:28 +00:00
Christian Stimming
986061d8f9 Fix gtk warnings when erroneously setting the fixed-width property to zero.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19708 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-10-25 18:50:11 +00:00
Christian Stimming
22bd33afd2 Bug #629524: Fix redundant string.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19707 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-10-25 18:16:14 +00:00
Phil Longstaff
dd81726d6d INFO message to trace log if a table is automatically upgraded to newer version.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19699 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-10-24 15:29:08 +00:00
Christian Stimming
feba4d6907 Update POTFILES.in with recent file addition.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19698 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-10-24 09:36:23 +00:00
Christian Stimming
50d5551266 Fix cmake declaration of BINDIR variable, needed because of r19651.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19697 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-10-24 09:17:23 +00:00
John Ralls
a4d1592788 Bug 611077: Removed warnings, webkit handles jumps to anchors internally
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19696 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-10-23 22:17:48 +00:00
Geert Janssens
a0c19b4c71 Bug #502853 - Incorrent tax rounding in invoice (rounding of .5)
This patch changes the default rounding behaviour in GnuCash from
"Round to nearest even" to "Round away to infinity". See the bugreport
for more details on these different rounding methods.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19695 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-10-23 10:38:48 +00:00
Geert Janssens
4a97361d38 Bug #593479 - Account file being deleted because of erroneous checking for lock file.
Replaces the pointer arithmetics with string functions and regexes where possible
to avoid typical pointer pitfalls.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19694 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-10-23 10:00:58 +00:00
Mike Alexander
60ba32c6a6 Suspend GUI refresh while replaying a log file to avoid flicker and speed it up dramatically.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19690 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-10-20 22:19:33 +00:00
Mike Alexander
11cf9d417b Bug 3786338. Change r19243 deleted a call to xaccTransBeginEdit which causes a crash replaying a log that
deletes an existing transaction.  Log replay should now do exactly one xaccTransBeginEdit/xaccTransCommitEdit
call per logged transaction.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19689 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-10-20 21:31:39 +00:00
John Ralls
c630a2c7d5 Remove gnc_book_mark_saved from gnc_sql_save_book. It's a bit premature to mark the book as saved when we haven't yet saved its contents.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19688 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-10-20 03:40:07 +00:00
John Ralls
c215ae417f Bug 632166: Restore the old session if "save as" fails.
Save as would make a new session the "current session" and attempt to
save it.  If it failed, the new session (with an invalid database)
would remain the current session -- and would be marked clean. An
XML-only file-save-as dialog would be presented with no instructions
about what was going on.

With this change, if the "save as" fails, the old session is restored,
still marked unsaved. This should be much less confusing to users and
more likely to avoid data loss.  

Yes, there's some duplicated code now, because do_save_as doesn't call
save. That's because save did some extra things that do_save_as
doesn't need and it didn't allow do_save_as to properly correct the
session. This could be refactored into some tiny functions, but that
seems a bit excessive to me.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19687 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-10-20 03:35:02 +00:00