def export_getActivitiesContents( self, selDict, sortList, start, limit ): """ Retrieve the contents of the activity db """ setupCond = {'sources.setup' : self.serviceInfoDict[ 'clientSetup' ] } selDict.update( setupCond ) result = gServiceInterface.getActivitiesContents( selDict, sortList, start, limit ) if not result[ 'OK' ]: return result resultTuple = result[ 'Value' ] result = { 'Records' : resultTuple[0], 'Fields' : resultTuple[1]} result[ 'TotalRecords' ] = gServiceInterface.getNumberOfActivities( setupCond ) return S_OK( result )
def export_getActivitiesContents(self, selDict, sortList, start, limit): """ Retrieve the contents of the activity db """ setupCond = {"sources.setup": self.serviceInfoDict["clientSetup"]} selDict.update(setupCond) result = gServiceInterface.getActivitiesContents( selDict, sortList, start, limit) if not result["OK"]: return result resultTuple = result["Value"] result = {"Records": resultTuple[0], "Fields": resultTuple[1]} result["TotalRecords"] = gServiceInterface.getNumberOfActivities( setupCond) return S_OK(result)