openedx.core.lib.xblock_pipeline package#
Submodules#
openedx.core.lib.xblock_pipeline.finder module#
Django pipeline finder for handling static assets required by XBlocks.
- class openedx.core.lib.xblock_pipeline.finder.XBlockPackageStorage(module, base_dir, *args, **kwargs)#
Bases:
StorageStorage implementation for accessing XBlock package resources.
- RESOURCE_PREFIX = 'xblock/resources/'#
- delete(name)#
Note: deleting files from a package is not supported.
- exists(path)#
Returns True if the specified path exists.
- get_accessed_time(name)#
Returns a URL to the package resource.
- get_created_time(name)#
Returns the created time of the package resource.
- get_modified_time(name)#
Returns the modified time of the resource.
- listdir(path)#
Lists the directories beneath the specified path.
- open(name, mode='rb')#
Retrieves the specified file from storage.
- path(name)#
Returns a file system filename for the specified file name.
- size(name)#
Returns the size of the package resource.
- url(name)#
Note: package resources do not support URLs
- class openedx.core.lib.xblock_pipeline.finder.XBlockPipelineFinder(*args, **kwargs)#
Bases:
BaseFinderA static files finder that gets static assets from xblocks.
- find(path, *args, **kwargs)#
Looks for files in the xblock package directories.
- list(ignore_patterns)#
List all static files in all xblock packages.