equal
deleted
inserted
replaced
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 |