everest.directives

ZCML directives for everest.

class everest.directives.ResourceDirective(context, interface, member, entity, collection=None, collection_root_name=None, collection_title=None, repository=None, expose=True)[source]

Bases: zope.configuration.config.GroupingContextDecorator

Directive for registering a resource. Calls everest.configuration.Configurator.add_resource().

class everest.directives.ResourceRepresenterDirective(context, content_type, kind=None)[source]

Bases: zope.configuration.config.GroupingContextDecorator

Grouping directive for registering a representer for a given resource(s) and content type combination. Delegates the work to a everest.configuration.Configurator.

everest.directives.filesystem_repository(_context, name=None, make_default=False, aggregate_class=None, entity_store_class=None, directory=None, content_type=None)[source]

Directive for registering a file-system based repository.

everest.directives.messaging(_context, repository, reset_on_start=True)[source]

Directive for setting up the user message resource in the appropriate repository.

Parameters:repository (str) – The repository to create the user messages resource in.
everest.directives.orm_repository(_context, name=None, make_default=False, aggregate_class=None, entity_store_class=None, db_string=None, metadata_factory=None)[source]

Directive for registering an ORM based repository.

Project Versions

Previous topic

everest.configuration

Next topic

everest.exceptions

This Page