Exemple #1
0
 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)
Exemple #2
0
  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 )
Exemple #3
0
    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)