VirtualMailManager/Config.py
changeset 98 e992f03aace7
parent 95 fc008eb12186
child 102 485d3f7d6981
equal deleted inserted replaced
97:2de22fbab129 98:e992f03aace7
   132             self.set('config', 'done', 'False')
   132             self.set('config', 'done', 'False')
   133             self.__changes = True
   133             self.__changes = True
   134         print _(u"Using configuration file: %s\n") % self.__cfgFileName
   134         print _(u"Using configuration file: %s\n") % self.__cfgFileName
   135         for s in sections:
   135         for s in sections:
   136             if s != 'config':
   136             if s != 'config':
   137                 print _(u'* Config section: »%s«') % s
   137                 print _(u'* Config section: »%s«').encode(ENCODING,'replace')%s
   138             for opt, val in self.items(s):
   138             for opt, val in self.items(s):
   139                 newval = raw_input(
   139                 newval = raw_input(
   140                 _('Enter new value for option %(opt)s [%(val)s]: ').encode(
   140                 _('Enter new value for option %(opt)s [%(val)s]: ').encode(
   141                     ENCODING, 'replace') % {'opt': opt, 'val': val})
   141                     ENCODING, 'replace') % {'opt': opt, 'val': val})
   142                 if newval and newval != val:
   142                 if newval and newval != val: