report¶
AbstractReportGenerator¶
- class ORSServiceClass.report.abstractreportgenerator.AbstractReportGenerator¶
- classmethod copyFile(basename, sourceDirectory, destinationDirectory)¶
Copies a file from a location to another. May be used to keep a copy of the report data (XML) file.
- Parameters:
basename (str) – base name of the file (ex: aReport.xml)
sourceDirectory (folder) – directory where the file is currently located
destinationDirectory (folder) – directory where the file should be copied to
- Returns:
output (bool) – True if the copy succeeded; False otherwise
- copyFilesLastGeneratedReport(sourceDirectory, destinationDirectory)¶
Copies the generated files (images, …) from their current location to another.
- Parameters:
sourceDirectory (folder) – directory where the files are currently located
destinationDirectory (folder) – directory where the files should be copied to
- Return:
True if the copy succeeded for all files; False otherwise
- Rtype:
bool