ocrd_models.report module

Validation report with messages of different levels of severity.

class ocrd_models.report.ValidationReport[source]

Bases: object

Container of notices, warnings and errors about a workspace.

Create a new ValidationReport.

property is_valid

Whether the report contains neither errors nor warnings.

to_xml()[source]

Serialize to XML.

add_warning(msg)[source]

Add a warning.

add_error(msg)[source]

Add an error

add_notice(msg)[source]

Add a notice

merge_report(otherself)[source]

Merge another report into this one.