Ejemplo n.º 1
0
 def getReport(self, uuid, lang):
     xsl = XLSGenerator("/var/tmp/report-" + uuid + ".xls", lang)
     xsl.get_summary_sheet(
         self.getLastMachineInventoryPart2('Summary', {"uuid": uuid}))
     xsl.get_hardware_sheet(
         self.getLastMachineInventoryPart2("Processors", {"uuid": uuid}),
         self.getLastMachineInventoryPart2('Controllers', {"uuid": uuid}),
         self.getLastMachineInventoryPart2('GraphicCards', {"uuid": uuid}),
         self.getLastMachineInventoryPart2('SoundCards', {"uuid": uuid}))
     xsl.get_network_sheet(
         self.getLastMachineInventoryPart2('Network', {"uuid": uuid}))
     xsl.get_storage_sheet(
         self.getLastMachineInventoryPart2('Storage', {"uuid": uuid}))
     # TODO : adapt Inventory().getLastMachineInventoryPart2 to Software part
     #xsl.get_software_sheet(self.getLastMachineInventoryPart2('Software', {"uuid":uuid, "hide_win_updates":True}))
     xsl.save()
     return xmlrpcCleanup(xsl.path)
Ejemplo n.º 2
0
 def getReport(self,uuid,lang):
     xsl= XLSGenerator("/var/tmp/report-"+uuid+".xls",lang)
     xsl.get_summary_sheet(self.getLastMachineInventoryPart2('Summary', {"uuid":uuid}))
     xsl.get_hardware_sheet(self.getLastMachineInventoryPart2("Processors", {"uuid":uuid}),
                             self.getLastMachineInventoryPart2('Controllers', {"uuid":uuid}),
                             self.getLastMachineInventoryPart2('GraphicCards', {"uuid":uuid}),
                             self.getLastMachineInventoryPart2('SoundCards', {"uuid":uuid}))
     xsl.get_network_sheet(self.getLastMachineInventoryPart2('Network', {"uuid":uuid}))
     xsl.get_storage_sheet(self.getLastMachineInventoryPart2('Storage', {"uuid":uuid}))
     # TODO : adapt Inventory().getLastMachineInventoryPart2 to Software part
     #xsl.get_software_sheet(self.getLastMachineInventoryPart2('Software', {"uuid":uuid, "hide_win_updates":True}))
     xsl.save()
     return xmlrpcCleanup(xsl.path)
Ejemplo n.º 3
0
def getReport(uuid, lang):
    xsl = XLSGenerator("/var/tmp/report-" + uuid + ".xls", lang)
    xsl.get_summary_sheet(getLastMachineInventoryPart(uuid, "Summary"))
    xsl.get_hardware_sheet(getLastMachineInventoryPart(uuid, "Processors"),
                           getLastMachineInventoryPart(uuid, "Controllers"),
                           getLastMachineInventoryPart(uuid, 'GraphicCards'),
                           getLastMachineInventoryPart(uuid, 'SoundCards'))
    xsl.get_network_sheet(getLastMachineInventoryPart(uuid, 'Network'))
    xsl.get_storage_sheet(getLastMachineInventoryPart(uuid, 'Storage'))
    xsl.get_software_sheet(
        getLastMachineInventoryPart(uuid, 'Softwares', 0, -1, None,
                                    {"hide_win_updates": True}))
    xsl.save()
    return xmlrpcCleanup(xsl.path)
Ejemplo n.º 4
0
def getReport(uuid,lang):
    xsl= XLSGenerator("/var/tmp/report-"+uuid+".xls",lang)
    xsl.get_summary_sheet(getLastMachineInventoryPart(uuid, "Summary"))
    xsl.get_hardware_sheet(getLastMachineInventoryPart(uuid, "Processors"),
                            getLastMachineInventoryPart(uuid, "Controllers"),
                            getLastMachineInventoryPart(uuid, 'GraphicCards'),
                            getLastMachineInventoryPart(uuid, 'SoundCards'))
    xsl.get_network_sheet(getLastMachineInventoryPart(uuid,'Network'))
    xsl.get_storage_sheet(getLastMachineInventoryPart(uuid, 'Storage'))
    xsl.get_software_sheet(getLastMachineInventoryPart(uuid, 'Softwares',0,-1,None,{"hide_win_updates":True}))
    xsl.save()
    return xmlrpcCleanup(xsl.path)