everest.representers.utils
Representer related utilities.
-
everest.representers.utils.as_representer(resource, content_type)[source]
Adapts the given resource and content type to a representer.
Parameters: |
- resource – resource to adapt.
- content_type (str) – content (MIME) type to create a
representer for.
|
-
everest.representers.utils.get_mapping_registry(content_type)[source]
Returns the data element registry for the given content type (a Singleton).
Note : | This only works after a representer for the given content type
has been created. |