def __generatePlotForReport(self, reportRequest, reportHash, reportData): funcName = "_plot%s" % reportRequest['reportName'] try: funcObj = getattr(self, funcName) except BaseException: return S_ERROR("Plot function for report %s is not defined" % reportRequest['reportName']) return gDataCache.getReportPlot(reportRequest, reportHash, reportData, funcObj)
def __generatePlotForReport( self, reportRequest, reportHash, reportData ): """ It creates the plot :param dict reportRequest contains the plot attributes :param str reportHash unique string which identify the plot :param dict repotData contains the data used to generate the plot. """ funcName = "_plot%s" % reportRequest[ 'reportName' ] try: funcObj = getattr( self, funcName ) except: return S_ERROR( "Plot function for report %s is not defined" % reportRequest[ 'reportName' ] ) return gDataCache.getReportPlot( reportRequest = reportRequest, reportHash = reportHash, reportData = reportData, plotFunc = funcObj )
def __generatePlotForReport(self, reportRequest, reportHash, reportData): """It creates the plot :param dict reportRequest: contains the plot attributes :param str reportHash: unique string which identify the plot :param dict repotData: contains the data used to generate the plot. """ funcName = "_plot%s" % reportRequest['reportName'] try: funcObj = getattr(self, funcName) except BaseException: return S_ERROR("Plot function for report %s is not defined" % reportRequest['reportName']) return gDataCache.getReportPlot(reportRequest=reportRequest, reportHash=reportHash, reportData=reportData, plotFunc=funcObj)