VirtualMailManager/cli/handler.py
branchv0.6.x
changeset 417 8209da83e256
parent 375 4cbaf8d229f9
child 422 33a45e4c80c4
equal deleted inserted replaced
416:f32b323fd347 417:8209da83e256
    88     def user_password(self, emailaddress, password=None):
    88     def user_password(self, emailaddress, password=None):
    89         """Override the parent user_password() - add the interactive
    89         """Override the parent user_password() - add the interactive
    90         password dialog."""
    90         password dialog."""
    91         acc = self._get_account(emailaddress)
    91         acc = self._get_account(emailaddress)
    92         if not acc:
    92         if not acc:
    93             raise VMMError(_(u"The account '%s' doesn't exist.") %
    93             raise VMMError(_(u"The account '%s' does not exist.") %
    94                            acc.address, NO_SUCH_ACCOUNT)
    94                            acc.address, NO_SUCH_ACCOUNT)
    95         if not isinstance(password, basestring) or not password:
    95         if not isinstance(password, basestring) or not password:
    96             password = read_pass()
    96             password = read_pass()
    97         acc.modify('password', password)
    97         acc.modify('password', password)
    98 
    98