VirtualMailManager/cli/__init__.py
branchv0.7.x
changeset 663 de435d1aa1c0
parent 654 f2463a64e1d7
child 668 b4396a78c996
equal deleted inserted replaced
662:9ec7770193ad 663:de435d1aa1c0
    77     """Interactive 'password chat', returns the password in plain format.
    77     """Interactive 'password chat', returns the password in plain format.
    78 
    78 
    79     Throws a VMMError after the third failure.
    79     Throws a VMMError after the third failure.
    80     """
    80     """
    81     # TP: Please preserve the trailing space.
    81     # TP: Please preserve the trailing space.
    82     readp_msg0 = _('Enter new password: ').encode(ENCODING, 'replace')
    82     readp_msg0 = _('Enter new password: ')
    83     # TP: Please preserve the trailing space.
    83     # TP: Please preserve the trailing space.
    84     readp_msg1 = _('Retype new password: ').encode(ENCODING, 'replace')
    84     readp_msg1 = _('Retype new password: ')
    85     mismatched = True
    85     mismatched = True
    86     failures = 0
    86     failures = 0
    87     while mismatched:
    87     while mismatched:
    88         if failures > 2:
    88         if failures > 2:
    89             raise VMMError(_('Too many failures - try again later.'),
    89             raise VMMError(_('Too many failures - try again later.'),