HTML exporter for human consumption
Warning
THIS MODULE DOES NOT HAVE A STABLE PUBLIC API
Bases: builtins.object
A helper class to inline resources referenced in an lxml tree.
Replace references to external resources by an in-place (inlined) representation of each resource.
Currently images, stylesheets and scripts are inlined.
Only local (i.e. file) resources/locations are supported. If a non-local resource is requested for inlining, it will be removed (replaced by a blank string), with the goal that the resulting lxml tree will not reference any unreachable resources.
Parameters: | document_tree – lxml tree to process. |
---|---|
Returns: | lxml tree with some elements replaced by their inlined representation. |
Bases: plainbox.impl.exporter.xml.XMLSessionStateExporter
Session state exporter creating HTML documents.
It basically applies an xslt to the XMLSessionStateExporter output, and then inlines some resources to produce a monolithic report in a single file.
Dumps the given lxml root tree into the given stream, by applying the provided xslt. If template_substitutions is provided, the xslt will first be processed as a string.Template with those substitutions.
Parameters: |
|
---|
Returns the value assigned to an option.
Get resource with the specified partial_id
Parameters: |
|
---|---|
Returns: | List of resource objects or None. Does not return empty lists. |
Get the XML element of the document exported from the given data
Compute a subset of session data.
The subset of the data that should be saved may depend on a particular saver class and options selected by the user.
Must return a collection that can be handled by dump(). Special care must be taken when processing io_log (and in the future, attachments) as those can be arbitrarily large.
assigns a value to an option. If no value is given, it just “sets” the option to True