OrsReportGenerator_5c105186d0aa11e99900309c235e8fdb

Generates reports

author:ORS Team
contact:http://theobjects.com
email:info@theobjects.com
organization:Object Research Systems (ORS), Inc.
address:460 Ste-Catherine Ouest, suite 600, Montréal, Québec, Canada, H3B 1A7
copyright:Object Research Systems (ORS), Inc. All rights reserved 2021.
date:Sep 06 2019 09:29
dragonflyVersion:
 4.5.0.711 (D)
UUID:5c105186d0aa11e99900309c235e8fdb

Class Code

class OrsPythonPlugins.OrsReportGenerator_5c105186d0aa11e99900309c235e8fdb.OrsReportGenerator_5c105186d0aa11e99900309c235e8fdb.OrsReportGenerator_5c105186d0aa11e99900309c235e8fdb(varName=None, managed=True)
UIDescriptors = [<ORSServiceClass.OrsPlugin.uidescriptor.UIDescriptor object>]
addInputXMLFilenames(listInputXMLFilenames)
addInputXMLFilenamesFromFolder(inputXMLFolderName, includeSubfolders=True)

Adds the XML files found in the provided folder to those that should be analyzed.

Parameters:
  • inputXMLFolderName (folder) – provided folder
  • includeSubfolders (bool) – if True, the subfolders are also searched for XML files
canBeGenericallyOpened = False
exportCurrentInputFilesAsMergedXML(outputFilename)

Generates a XML document from the XML input data with the same format as the one that would be sent to an XSL transformation. This may be used when developing an XSL file.

Parameters:outputFilename (file saving) – merged XML filename
interfacemethod generateReport(inputDataFilenames=None, xsltUUID='', outputFilename='', saveTEXFile=False, showMessageBoxIfSuccessful=True, showMessageBoxIfFailed=True, inputDataFilename=None)

Generates a report based on some data.

Changed in version -: Argument inputDataFilename (single instance) is replaced by inputDataFilenames (list)

Parameters:
  • inputDataFilenames (file) [count=[1, None]] – input data filenames
  • xsltUUID (str) – unique identifier (UUID) of the XSLT stylesheet
  • outputFilename (file saving) – report filename
  • saveTEXFile (bool) – if True, the .tex file will be saved in the output folder
  • showMessageBoxIfSuccessful (bool) – if True, the message box informing about a successful generation will be displayed. Otherwise, no message box will appear.
  • showMessageBoxIfFailed (bool) – if True, the message box informing about an error during the generation will be displayed. Otherwise, no message box will appear.
  • inputDataFilename (file) [deprecated: use inputDataFilenames instead] – input data filename
generateReportOnCurrentInstance()
getAvailableXSLTTitlesAndUUIDsForCurrentInputXMLFilename()
getIsReadyToExportCurrentInputFilesAsMergedXML()
getIsReadyToGenerate()
classmethod getMainFormClass()

Gets the class of the main form

Returns:output
getOutputFilename()
getSaveTEXFile()
getShowMessageBoxIfFailed()
getShowMessageBoxIfSuccessful()
getTableModelInputXMLFiles()
getXSLTBibliography()
getXSLTUUID()
keepAlive = False
multiple = False
removeInputXMLFilenames(listInputXMLFilenames)
savable = False
setOutputFilename(outputFilename)
setSaveTEXFile(saveTEXFile)
setShowMessageBoxIfFailed(showMessageBoxIfFailed)
setShowMessageBoxIfSuccessful(showMessageBoxIfSuccessful)
setXSLTUUID(xsltUUID)
classmethod startReportGenerator()
classmethod toolsMenu()
updateBibliographyFromXSLTUUID()
updateTableModelInputXMLFiles()
updateXSLTUUIDFromAvailableXSLTUUIDs()

Selects an XSLT UUID from the list of the available possibilities. If the current UUID is found in the list, it is kept. If the current UUID is not found in the list, the first one is selected.