'Returns a list of the database files in directory.'

def DatabasesInDir(self, directory):

    for (path, dirs, files) in os.walk(directory, topdown=True):
        dirs.sort()
        files.sort()
        for f in files:
            if f.endswith(SQLITE_EXTENSION):
                f = f[:(- len(SQLITE_EXTENSION))]
                (yield utils.JoinPath(path, f))
