diff options
author | Yves Combe <ycombe@src.gnome.org> | 2005-08-22 05:15:34 (GMT) |
---|---|---|
committer | Yves Combe <ycombe@src.gnome.org> | 2005-08-22 05:15:34 (GMT) |
commit | a2b9f5b3310678c243f88ecfb639b591d203955b (patch) | |
tree | d906da7c6010f5295758c97586feef06e992141e /src | |
parent | 4633f9c5c7607454820ee52821d165d8a672dd9f (diff) |
add trace in get_conf and it's binding to control the key, value inversion bruno had.
Diffstat (limited to 'src')
-rw-r--r-- | src/boards/py-mod-gcompris.c | 2 | ||||
-rw-r--r-- | src/boards/python/login.py | 5 | ||||
-rw-r--r-- | src/boards/python/pythontest.py | 5 | ||||
-rw-r--r-- | src/gcompris/gcompris_db.c | 6 |
4 files changed, 17 insertions, 1 deletions
diff --git a/src/boards/py-mod-gcompris.c b/src/boards/py-mod-gcompris.c index dfed588..57bf643 100644 --- a/src/boards/py-mod-gcompris.c +++ b/src/boards/py-mod-gcompris.c @@ -38,6 +38,8 @@ void pair_in_dict(gpointer key, } PyDict_SetItem((PyObject *)dict, pyKey, pyValue); + + g_warning("Hash to dict: pass key %s and value %s",(gchar *)key, (gchar *)value ); } diff --git a/src/boards/python/login.py b/src/boards/python/login.py index d02ee11..4c78927 100644 --- a/src/boards/python/login.py +++ b/src/boards/python/login.py @@ -80,10 +80,14 @@ class Gcompris_login: # init config to default values self.config_dict = self.init_config() + print "init self.config_dict :", self.config_dict # change configured values + print "gcompris.get_board_conf() : ", gcompris.get_board_conf() self.config_dict.update(gcompris.get_board_conf()) + print "self.config_dict final :", self.config_dict + # Create and Initialize the rootitem. self.init_rootitem(self.Prop) @@ -97,6 +101,7 @@ class Gcompris_login: self.users = self.check_unique_id(users) + print self.config_dict if eval(self.config_dict['entry_text']): self.entry_text() else: diff --git a/src/boards/python/pythontest.py b/src/boards/python/pythontest.py index 1d89544..91c7752 100644 --- a/src/boards/python/pythontest.py +++ b/src/boards/python/pythontest.py @@ -52,8 +52,13 @@ class Gcompris_pythontest: # init config to default values self.config_dict = self.init_config() + print "init self.config_dict :", self.config_dict + # change configured values + print "gcompris.get_board_conf() : ", gcompris.get_board_conf() self.config_dict.update(gcompris.get_board_conf()) + + print "self.config_dict final :", self.config_dict self.previous_locale = gcompris.get_locale() diff --git a/src/gcompris/gcompris_db.c b/src/gcompris/gcompris_db.c index 4c4f8e4..a558ef2 100644 --- a/src/gcompris/gcompris_db.c +++ b/src/gcompris/gcompris_db.c @@ -1,6 +1,6 @@ /* gcompris - gcompris_db.c * - * Time-stamp: <2005/08/21 21:14:48 yves> + * Time-stamp: <2005/08/22 07:00:18 yves> * * Copyright (C) 2000 Bruno Coudoin * @@ -1217,6 +1217,10 @@ GHashTable *gcompris_get_conf_with_table(int profile_id, int board_id, GHashTabl g_hash_table_replace (hash_conf, g_strdup(result[i++]), g_strdup(result[i++])); + i -=2; + g_warning("get_conf: put key %s, value %s in the hash", + g_strdup(result[i++]), + g_strdup(result[i++])); } sqlite3_free_table(result); |