FileHtml Module
Module for saving ERACS HTML files.
- class TEracsFileHtml
Descends from TEracsFileXml since the HTML transformation requires XML data. This class handles writing ERACS data to an HTML format.
- Inherits
- Save(AFilePathAndName, AResultsCallback)
Uses the internal XML files to save to an XML object, then performs a transformation to HTML using the XSLT file inside the ERACS directory.
- Required
lxml python library.
- Parameters
AFilePathAndName (str) – The full file path and name to save to.
AResultsCallback (func) – The result callback function which is called when outputting results into the XML.
- Returns
True if successfully saved.
- Raises
TEracsDataError – If the lxml library is missing and therefore can’t write out the HTML.