transport_data.org.metadata.report.MetadataAttribute0RST¶
- class transport_data.org.metadata.report.MetadataAttribute0RST(mds: v21.MetadataSet, mda_id: str)[source]¶
Bases:
Report
Unique values appearing in mds for the metadata attribute mda_id.
Same as
MetadataAttribute0Plain
, but in reStructuredText.Methods
__init__
(mds, mda_id)render
()Render the report (generate its contents) and return as str or bytes.
render_jinja_template
(*args, **kwargs)Retrieve the Jinja2
template_name
and call its render method.rst2odt
(content)Convert content from reStructuredText to OpenDocument Text (ODT).
write_file
(path, **kwargs)render()
the report and write to path.Attributes
Jinja2 reStructuredText template.
Metadata set to report.
ID of a Metadata Attribute to report.
- mds: v21.MetadataSet¶
Metadata set to report.
- render() str ¶
Render the report (generate its contents) and return as str or bytes.
The content may be in any format: plain text, HTML, binary file content, etc.
- render_jinja_template(*args, **kwargs) str ¶
Retrieve the Jinja2
template_name
and call its render method.