upgrade only once :)
authorPierre <ratinaud@univ-tlse2.fr>
Sun, 10 Feb 2013 15:09:10 +0000 (16:09 +0100)
committerPierre <ratinaud@univ-tlse2.fr>
Sun, 10 Feb 2013 15:09:10 +0000 (16:09 +0100)
checkinstall.py
corpus.py
iramuteq.py

index 5fb6ef1..93aa358 100644 (file)
@@ -45,6 +45,7 @@ def IsNew(self):
                 return True
 
 def UpgradeConf(self) :
+    log.info('upgrade conf')
     dictuser = self.ConfigPath
     dictappli = ConstructConfigPath(self.AppliPath, user = False)
     for item,filein in dictuser.iteritems():
index 2e85ed5..cd6c364 100644 (file)
--- a/corpus.py
+++ b/corpus.py
@@ -77,10 +77,10 @@ class Corpus :
                 gramtype = self.parent.lexique[word][1]
                 lem = self.parent.lexique[word][0]
             elif word.isdigit() :
-                gramtype = 'num'
+                gramtype = u'num'
                 lem = word
             else :
-                gramtype = 'nr'
+                gramtype = u'nr'
                 lem = word
             self.formes[word] =  Word(word, gramtype, len(self.formes), lem)
             self.idformesuces[self.formes[word].ident] = {self.ucis[-1].uces[-1].ident : 1}
index 90212a7..cf7088a 100644 (file)
@@ -441,6 +441,7 @@ class IraFrame(wx.Frame):
             self.pref.read(self.ConfigPath['preferences'])
             if IsNew(self) :
                 UpgradeConf(self)
+                self.pref.read(self.ConfigPath['preferences'])
                 New = True
             else :
                 CopyConf(self)