VirtualMailManager/cli/config.py
branchv0.6.x
changeset 341 6709d0faf2f5
parent 322 94bd10e237e5
child 344 0d2430dc6ef8
equal deleted inserted replaced
340:4515afec62e5 341:6709d0faf2f5
    33                       u'[%(current_value)s]: ')
    33                       u'[%(current_value)s]: ')
    34         failures = 0
    34         failures = 0
    35 
    35 
    36         w_std(_(u'Using configuration file: %s\n') % self._cfg_filename)
    36         w_std(_(u'Using configuration file: %s\n') % self._cfg_filename)
    37         for section in sections:
    37         for section in sections:
    38             w_std(_(u'* Configuration section: %r') % section)
    38             w_std(_(u"* Configuration section: '%s'") % section)
    39             for opt, val in self.items(section):
    39             for opt, val in self.items(section):
    40                 failures = 0
    40                 failures = 0
    41                 while True:
    41                 while True:
    42                     newval = raw_input(input_fmt.encode(ENCODING, 'replace') %
    42                     newval = raw_input(input_fmt.encode(ENCODING, 'replace') %
    43                                        {'option': opt, 'current_value': val})
    43                                        {'option': opt, 'current_value': val})