everest.utils
General purpose utilities.
-
class everest.utils.BidirectionalLookup(init_map=None, map_type=<type 'dict'>)[source]
Bases: object
Bidirectional mapping between a left and a right collection of items.
Each element of the left collection is mapped to exactly one element of
the right collection; both collections contain unique elements.
-
__init__(init_map=None, map_type=<type 'dict'>)[source]
Parameters: |
- init_map – map-like object to initialize this instance with
- map_type – type to use for the left and right item maps
(dictionary like)
|
-
__weakref__
list of weak references to the object (if defined)
-
everest.utils.check_email()
match(string[, pos[, endpos]]) –> match object or None.
Matches zero or more characters at the beginning of the string
-
everest.utils.classproperty[source]
Property descriptor for class objects.
-
everest.utils.get_filter_specification_visitor(name)[source]
Returns a the class registered as the filter specification
visitor utility under the given name (one of the
everest.querying.base.EXPRESSION_KINDS constants).
Returns: | class implementing
everest.interfaces.IFilterSpecificationVisitor |
-
everest.utils.get_order_specification_visitor(name)[source]
Returns the class registered as the order specification
visitor utility under the given name (one of the
everest.querying.base.EXPRESSION_KINDS constants).
Returns: | class implementing
everest.interfaces.IOrderSpecificationVisitor |
-
everest.utils.get_repository_manager()[source]
Registers the object registered as the repository manager utility.
Returns: | object implementing
everest.interfaces.IRepositoryManager |