VirtualMailManager/Config.py
changeset 51 f5ca21303871
parent 49 9bd033177377
child 53 5b50eb306d37
equal deleted inserted replaced
50:927b0705d31a 51:f5ca21303871
   128         for s in sections:
   128         for s in sections:
   129             if s != 'config':
   129             if s != 'config':
   130                 print _(u'* Config section: »%s«') % s
   130                 print _(u'* Config section: »%s«') % s
   131             for opt, val in self.items(s):
   131             for opt, val in self.items(s):
   132                 newval = raw_input(
   132                 newval = raw_input(
   133                 _('Enter new value for option %s [%s]: ').encode(
   133                 _('Enter new value for option %(opt)s [%(val)s]: ').encode(
   134                     ENCODING, 'replace') % (opt, val))
   134                     ENCODING, 'replace') % {'opt': opt, 'val': val})
   135                 if newval and newval != val:
   135                 if newval and newval != val:
   136                     self.set(s, opt, newval)
   136                     self.set(s, opt, newval)
   137                     self.__changes = True
   137                     self.__changes = True
   138             print
   138             print
   139         if self.__changes:
   139         if self.__changes: