everest.repository

Repository base class.

class everest.repository.Repository[source]

Bases: object

Abstract base class for repositories.

The repository creates accessors on the fly, caches them, and returns a clone.

__weakref__

list of weak references to the object (if defined)

clear(rc)[source]

Clears the accessor for the given registered resource.

clear_all()[source]

Clears all accessors.

configure(**config)[source]

Configures this repository.

get(rc)[source]

Returns an accessor for the given registered resource.

If this is the first request, an instance is created on the fly using the new() method and cached. The method always returns a clone of the cached accessor; this clone can later be used to look up the repository it was obtained from using the get_repository() class method.

initialize()[source]

Initializes this repository.

new(rc)[source]

Returns a new accessor for the given registered resource.

set(rc, obj)[source]

Makes the given accessor the one to use for the given registered resource.

everest.repository.as_repository(rc)[source]

Adapts the given registered resource to its configured repository.

Returns:object implementing everest.resources.interfaces.IRepository.

Project Versions

Previous topic

everest.renderers

Next topic

everest.root

This Page