plainbox.impl.exporter.xml

XML exporter for certification website

Warning

THIS MODULE DOES NOT HAVE A STABLE PUBLIC API

class plainbox.impl.exporter.xml.XMLSessionStateExporter(option_list=None, system_id=None, timestamp=None, client_version=None, client_name='plainbox')[source]

Session state exporter creating XML documents

The following resource jobs are needed to validate sections of this report:
  • 2013.com.canonical.certification::package (Optional)
  • 2013.com.canonical.certification::uname (Optional)
  • 2013.com.canonical.certification::lsb (Mandatory)
  • 2013.com.canonical.certification::cpuinfo (Mandatory)
  • 2013.com.canonical.certification::dpkg (Mandatory)
The Hardware sections includes the content of the following attachments:
  • 2013.com.canonical.certification::dmi_attachment
  • 2013.com.canonical.certification::sysfs_attachment
  • 2013.com.canonical.certification::udev_attachment
NS = '2013.com.canonical.certification::'
SUPPORTED_OPTION_LIST = ()
dump(data, stream)[source]

Public method to dump the XML report to a stream

get_root_element(data)[source]

Get the XML element of the document exported from the given data

class plainbox.impl.exporter.xml.XMLValidator[source]

A validator for documents produced by XMLSessionStateExporter

validate_element(element)[source]

Validate the given element

Parameters:element – lxml.etree.ElementTree.Element to validate
Returns:True, if the document is valid
validate_text(text)[source]

Validate the given text

Parameters:text – text to validate

Previous topic

plainbox.impl.exporter.text – plain text exporter

Next topic

plainbox.impl.highlevel – High-level API

This Page