everest.representers.urlloader

URL lazy loader.

class everest.representers.urlloader.LazyAttributeLoaderProxy(_loader_map=None, **kw)[source]

Bases: object

Proxy for lazy loading of attributes referencing entities that are loaded through a URL-linked resource.

__weakref__

list of weak references to the object (if defined)

classmethod create(entity_cls, data)[source]

Factory class method to create a lazy loader for entities linked through resource URLs.

This returns an instance of a new dynamically created subtype of the given entity class which also inherits from this class to add the referenced entity attribute loading functionality. Once all referenced entity attributes have been loaded successfully, the instance’s class is reverted to the given entity class.

class everest.representers.urlloader.LazyUrlLoader(url, resolver)[source]

Bases: object

Helper class for lazy loading of URLs.

__weakref__

list of weak references to the object (if defined)

Project Versions

Previous topic

everest.representers.traversal

Next topic

everest.representers.utils

This Page