Exemple #1
0
    def process_generate_report_fiwalk_from_xml(self, fn):
        self.xmlInput = True
        input_file = fn.fiwalk_xmlfile
        FiwalkReport.outdir = fn.outdir

        # First get the partition information.
        bc_get_volume_info_from_sax(FiwalkReport, input_file, image_info, prtn_info_items, glb_image_info)

        # Now initialize the arrays that depend on the number of partitions.
        FiwalkReport.numfiles = [0] * FiwalkReport.numPartitions
        FiwalkReport.dirs = [0] * FiwalkReport.numPartitions
        FiwalkReport.deletedFiles = [0] * FiwalkReport.numPartitions
        FiwalkReport.unusedFiles = [0] * FiwalkReport.numPartitions
        FiwalkReport.moreNumlinks = [0] * FiwalkReport.numPartitions
        FiwalkReport.emptyFiles = [0] * FiwalkReport.numPartitions
        FiwalkReport.bigFiles = [0] * FiwalkReport.numPartitions

        # Process the xml file with sax
        bc_process_xmlfile_using_sax(FiwalkReport, input_file, prtn_info, glb_image_info, image_info)

        # Now generate the reports
        self.bc_generate_fiwalk_reports(fn)

        # Generate Excel report by default
        bc_generate_xlsx(fn)
    def process_generate_report_fiwalk_from_xml(self, fn):
        self.xmlInput = True
        input_file = fn.fiwalk_xmlfile
        FiwalkReport.outdir = fn.outdir
        ## print("FN: ", fn)
        ## print("input_file: ", input_file)

        # Process the xml file with sax
        bc_process_xmlfile_using_sax(FiwalkReport, input_file, image_info)

        # Now generate the reports
        self.bc_generate_fiwalk_reports(fn)

        # Generate Excel report by default
        bc_generate_xlsx(fn)