ocrd_validators.report module

Validation report with messages of different levels of severity.

class ocrd_validators.report.ValidationReport[source]

Bases: object

Container of notices, warnings and errors about a workspace.

add_error(msg)[source]

Add an error

add_notice(msg)[source]

Add a notice

add_warning(msg)[source]

Add a warning.

is_valid

Whether the report contains neither errors nor warnings.

merge_report(otherself)[source]

Merge another report into this one.

to_xml()[source]

Serialize to XML.