everest.entities.utils

Entity related utilities.

everest.entities.utils.get_entity_class(rc)[source]

Returns the entity class registered for the given registered resource.

Parameters:member – registered resource
Returns:entity class (class implementing everest.entities.interfaces.IEntity)
everest.entities.utils.get_root_aggregate(rc)[source]

Returns an aggregate from the root entity repository for the given registered resource.

everest.entities.utils.get_stage_aggregate(rc)[source]

Returns an aggregate from the stage entity repository for the given registered resource.

everest.entities.utils.identifier_from_slug(slug)[source]

Converts the given slug into an identifier string.

Parameters:slug (str) – slug string
everest.entities.utils.slug_from_identifier(id_string)[source]

Converts the given identifier string into a slug.

Parameters:id_string (str) – identifier string
everest.entities.utils.slug_from_integer(integer)[source]

Slugs are mnemonic string identifiers for resources for use in URLs.

This function converts an integer into a string slug.

everest.entities.utils.slug_from_string(string)[source]

Slugs are mnemonic string identifiers for resources for use in URLs.

This function replaces characters that are not allowed to occur in a URL with allowed characters.

Project Versions

Previous topic

everest.entities.system

Next topic

everest.querying.base

This Page