for the changement ressource -> resource: upgrade the config file
This commit is contained in:
parent
a2ca03d85f
commit
a112c45323
10
Core/core.py
10
Core/core.py
|
@ -511,7 +511,15 @@ class GajimCore:
|
||||||
hostname = self.cfgParser.tab[account]["hostname"]
|
hostname = self.cfgParser.tab[account]["hostname"]
|
||||||
name = self.cfgParser.tab[account]["name"]
|
name = self.cfgParser.tab[account]["name"]
|
||||||
password = self.passwords[account]
|
password = self.passwords[account]
|
||||||
resource = self.cfgParser.tab[account]["resource"]
|
if not self.cfgParser.tab[account].has_key('resource']:
|
||||||
|
if not self.cfgParser.tab[account].has_key('ressource']:
|
||||||
|
resource = 'Gajim'
|
||||||
|
else:
|
||||||
|
resource = self.cfgParser.tab[account]['ressource']
|
||||||
|
self.cfgParser.tab[account]['resource'] = resource
|
||||||
|
del self.cfgParser.tab[account]['ressource']
|
||||||
|
else:
|
||||||
|
resource = self.cfgParser.tab[account]['resource']
|
||||||
|
|
||||||
#create connexion if it doesn't already existe
|
#create connexion if it doesn't already existe
|
||||||
con = None
|
con = None
|
||||||
|
|
Loading…
Reference in New Issue