ftp2http/ftp2http.py
def validate_authentication(self, username, password, handler):
        """
        Raises AuthenticationFailed if the supplied username and password
        are not valid credentials, else return None.

        """

        valid = self._validate_with_user_table(username, password)
        if not valid:
            for url in self._backends:
                valid = self._validate_with_url(username, password, url)
                if valid:
                    break

        if valid:
            if username not in self.user_table:
                self.add_user(username, password=None)
            if self._password_cache is not None:
                self._password_cache[username] = password
        else:
            raise AuthenticationFailed('Authentication failed.')

        Raises AuthenticationFailed if the supplied username and password
        are not valid credentials, else return None.

        
Raises AuthenticationFailed if the supplied username and password
are not valid credentials, else return None.
Raises AuthenticationFailed if the supplied username and password are not valid credentials else return None .
def validate_authentication(self, username, password, handler):
        valid = self._validate_with_user_table(username, password)
        if not valid:
            for url in self._backends:
                valid = self._validate_with_url(username, password, url)
                if valid:
                    break
        if valid:
            if username not in self.user_table:
                self.add_user(username, password=None)
            if self._password_cache is not None:
                self._password_cache[username] = password
        else:
            raise AuthenticationFailed('Authentication failed.')
def validate_authentication ( self , username , password , handler ) : valid = self . _validate_with_user_table ( username , password ) if not valid : for url in self . _backends : valid = self . _validate_with_url ( username , password , url ) if valid : break if valid : if username not in self . user_table : self . add_user ( username , password = None ) if self . _password_cache is not None : self . _password_cache [ username ] = password else : raise AuthenticationFailed ( 'Authentication failed.' )
Raises AuthenticationFailed if the supplied username and password
are not valid credentials, else return None.
Raises AuthenticationFailed if the supplied username and password are not valid credentials else return None .
"""
        Raises AuthenticationFailed if the supplied username and password
        are not valid credentials, else return None.

        """
self
username
password
handler