for the changement ressource -> resource: upgrade the config file

This commit is contained in:
Yann Leboulanger 2005-03-09 17:04:39 +00:00
parent a2ca03d85f
commit a112c45323
1 changed files with 9 additions and 1 deletions

View File

@ -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