'Returns the server password or None'

def __getpassword(self):

    if (self.goodpassword != None):
        return self.goodpassword
    if ((self.password != None) and (self.passworderror == None)):
        return self.password
    self.password = (self.repos.getpassword() or self.ui.getpass(self.repos.getname(), self.config, self.passworderror))
    self.passworderror = None
    return self.password
