r16044 - gnucash/trunk/src/backend/file - Invert "allow_file_incompatabiilty" tests: we now generate files that 2.0 might not read exactly.
Josh Sled
jsled at cvs.gnucash.org
Sat May 5 13:03:44 EDT 2007
Author: jsled
Date: 2007-05-05 13:03:42 -0400 (Sat, 05 May 2007)
New Revision: 16044
Trac: http://svn.gnucash.org/trac/changeset/16044
Modified:
gnucash/trunk/src/backend/file/gnc-book-xml-v2.c
gnucash/trunk/src/backend/file/gnc-schedxaction-xml-v2.c
gnucash/trunk/src/backend/file/io-utils.c
Log:
Invert "allow_file_incompatabiilty" tests: we now generate files that 2.0 might not read exactly.
Modified: gnucash/trunk/src/backend/file/gnc-book-xml-v2.c
===================================================================
--- gnucash/trunk/src/backend/file/gnc-book-xml-v2.c 2007-05-04 13:30:51 UTC (rev 16043)
+++ gnucash/trunk/src/backend/file/gnc-book-xml-v2.c 2007-05-05 17:03:42 UTC (rev 16044)
@@ -101,18 +101,8 @@
gnc_book_dom_tree_create(QofBook *book)
{
xmlNodePtr ret;
- gboolean allow_incompat;
- GError *err = NULL;
+ gboolean allow_incompat = TRUE;
- allow_incompat = gnc_gconf_get_bool("dev", "allow_file_incompatibility", &err);
- if (err != NULL)
- {
- g_warning("error getting gconf value [%s]", err->message);
- g_error_free(err);
- allow_incompat = FALSE;
- }
- g_debug("allow_incompatibility: [%s]", allow_incompat ? "true" : "false");
-
ret = xmlNewNode(NULL, BAD_CAST gnc_book_string);
xmlSetProp(ret, BAD_CAST "version", BAD_CAST gnc_v2_book_version_string);
Modified: gnucash/trunk/src/backend/file/gnc-schedxaction-xml-v2.c
===================================================================
--- gnucash/trunk/src/backend/file/gnc-schedxaction-xml-v2.c 2007-05-04 13:30:51 UTC (rev 16043)
+++ gnucash/trunk/src/backend/file/gnc-schedxaction-xml-v2.c 2007-05-05 17:03:42 UTC (rev 16044)
@@ -155,18 +155,8 @@
GDate *date;
gint instCount;
const GUID *templ_acc_guid;
- gboolean allow_incompat = FALSE;
- GError *err = NULL;
+ gboolean allow_incompat = TRUE;
- allow_incompat = gnc_gconf_get_bool("dev", "allow_file_incompatibility", &err);
- if (err != NULL)
- {
- g_warning("error getting gconf value [%s]", err->message);
- g_error_free(err);
- allow_incompat = FALSE;
- }
- g_debug("allow_incompatibility: [%s]", allow_incompat ? "true" : "false");
-
templ_acc_guid = xaccAccountGetGUID(sx->template_acct);
/* FIXME: this should be the same as the def in io-gncxml-v2.c */
Modified: gnucash/trunk/src/backend/file/io-utils.c
===================================================================
--- gnucash/trunk/src/backend/file/io-utils.c 2007-05-04 13:30:51 UTC (rev 16043)
+++ gnucash/trunk/src/backend/file/io-utils.c 2007-05-05 17:03:42 UTC (rev 16044)
@@ -74,18 +74,8 @@
write_account_tree(FILE *out, Account *root, sixtp_gdv2 *gd)
{
GList *descendants, *node;
- gboolean allow_incompat = FALSE;
- GError *err = NULL;
+ gboolean allow_incompat = TRUE;
- allow_incompat = gnc_gconf_get_bool("dev", "allow_file_incompatibility", &err);
- if (err != NULL)
- {
- g_warning("error getting gconf value [%s]", err->message);
- g_error_free(err);
- allow_incompat = FALSE;
- }
- g_debug("allow_incompatibility: [%s]", allow_incompat ? "true" : "false");
-
if (allow_incompat)
write_one_account(out, root, gd, allow_incompat);
More information about the gnucash-changes
mailing list