def all(self, request, force=False):
        directory = self.directory
        ext = '.%s' % self.ext
        for dirpath, dirnames, filenames in os.walk(directory):
            for filename in filenames:
                if skipfile(filename):
                    continue
                if dirpath != directory:
                    path = os.path.relpath(dirpath, directory)
                    filename = os.path.join(path, filename)

                if not filename.endswith(ext):
                    if force:
                        yield self.asset(filename)
                else:
                    filename = filename[:-len(ext)]
                    yield self.read(request, filename)

    # INTERNALS
Generator of contents in this model
dataset/ETHPy150Open quantmind/lux/lux/extensions/content/models.py/Content.all