[gcompris/gcomprixogoo] Minor improvements around hangman.



commit 1e977576b42439318b9e848828255ccf086ad36d
Author: Bruno Coudoin <bruno coudoin free fr>
Date:   Fri Aug 27 01:48:10 2010 +0200

    Minor improvements around hangman.

 src/boards/py-mod-gcompris.c      |    3 ---
 src/hangman-activity/hangman.py   |    7 +++++--
 src/hangman-activity/init_path.sh |    2 +-
 3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/boards/py-mod-gcompris.c b/src/boards/py-mod-gcompris.c
index a35219e..fe423bc 100644
--- a/src/boards/py-mod-gcompris.c
+++ b/src/boards/py-mod-gcompris.c
@@ -1587,9 +1587,6 @@ py_gcompris_wordlist_get_random_word (PyObject* self, PyObject* args)
     return NULL;
   gcWordList = (GcomprisWordlist*) pygobject_get(pyGcWordList);
 
-  printf("level=%d\n", level);
-  printf("worldlist nol=%d\n", gcWordList->number_of_level);
-  printf("worldlist locale name=%s\n", gcWordList->name);
   /* Call the corresponding C function */
   result = gc_wordlist_random_word_get (gcWordList, level);
 
diff --git a/src/hangman-activity/hangman.py b/src/hangman-activity/hangman.py
index 792c355..7cb7f2c 100644
--- a/src/hangman-activity/hangman.py
+++ b/src/hangman-activity/hangman.py
@@ -72,8 +72,11 @@ class Gcompris_hangman:
     # Create equivs list
     self.equivList = []
     for equiv in self.equivs.split(' '):
-      (k, v) = equiv.split('=')
-      self.equivList.append(k + v)
+      try:
+        (k, v) = equiv.split('=')
+        self.equivList.append(k + v)
+      except:
+        print ("ERROR: Bad equivalence liste '%s'" %(self.equivs, ))
 
   def start(self):
     # Create our rootitem. We put each canvas item in it so at the end we
diff --git a/src/hangman-activity/init_path.sh b/src/hangman-activity/init_path.sh
index 40592b4..18d985d 100755
--- a/src/hangman-activity/init_path.sh
+++ b/src/hangman-activity/init_path.sh
@@ -5,4 +5,4 @@ activity=hangman
 plugindir=$path/../boards/.libs
 pythonplugindir=$path 
 resourcedir=$path/resources
-section="/experimental"
+section="/reading"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]