def __retrieveReportData(self, reportRequest, reportHash): funcName = "_report%s" % reportRequest['reportName'] try: funcObj = getattr(self, funcName) except BaseException: return S_ERROR("Report %s is not defined" % reportRequest['reportName']) return gDataCache.getReportData(reportRequest, reportHash, funcObj)
def __retrieveReportData(self, reportRequest, reportHash): """ It uses the appropriate Plotter to retrieve the data from the database. :param dict reportRequest: the dictionary which contains the conditions used to create the plot :param str reportHash: it is the unique identifier used to cache a plot :return: dict S_OK/S_ERROR if the data found in the cache it returns from it otherwise it uses the cache. """ funcName = "_report%s" % reportRequest['reportName'] if not hasattr(self, funcName): return S_ERROR("Report %s is not defined" % reportRequest['reportName']) else: funcObj = getattr(self, funcName) return gDataCache.getReportData(reportRequest=reportRequest, reportHash=reportHash, dataFunc=funcObj)
def __retrieveReportData( self, reportRequest, reportHash ): """ It uses the appropriate Plotter to retrieve the data from the database. :param dict reportRequest the dictionary which contains the conditions used to create the plot :param str reportHash it is the unique identifier used to cache a plot :return dict S_OK/S_ERROR if the data found in the cache it returns from it otherwise it uses the cache. """ funcName = "_report%s" % reportRequest[ 'reportName' ] if not hasattr( self, funcName ): return S_ERROR( "Report %s is not defined" % reportRequest[ 'reportName' ] ) else: funcObj = getattr( self, funcName ) return gDataCache.getReportData( reportRequest = reportRequest, reportHash = reportHash, dataFunc = funcObj )