Using cove as a library (cove.lib)¶
Currently the main user of cove.lib
is cove.views
which is responsible for rendering the Cove web application.
common¶
-
cove.lib.common.
add_is_codelist
(obj)[source]¶ This is needed so that we can detect enums that are arrays as the jsonschema library does not give you any parent information and the codelist property is on the parent in this case. Only applies to release.tag in core schema at the moment.
-
cove.lib.common.
get_counts_additional_fields
(json_data, schema_obj, schema_name, context, fields_regex=False)[source]¶
-
cove.lib.common.
get_schema_validation_errors
(json_data, schema_obj, schema_name, cell_src_map, heading_src_map, extra_checkers=None)[source]¶
converters¶
exceptions¶
-
exception
cove.lib.exceptions.
CoveInputDataError
(context=None)[source]¶ An error that we think is due to the data input by the user, rather than a bug in the application.
-
exception
cove.lib.exceptions.
UnrecognisedFileType
(context=None)[source]¶ -
context
= {‘sub_title’: <django.utils.functional.lazy.<locals>.__proxy__ object>, ‘msg’: <django.utils.functional.lazy.<locals>.__proxy__ object>, ‘link’: ‘index’, ‘link_text’: <django.utils.functional.lazy.<locals>.__proxy__ object>}¶
-