def __init__(self, config): BulkOperations.__init__(self, config) self.wmstatWriteURL = "%s/%s" % (config.couchUrl.rstrip('/'), config.wmstatDBName) self.acdcURL = "%s/%s" % (config.couchUrl.rstrip('/'), config.acdcDBName) self.searchFields = ["RequestName", "RequestType"]
def __init__(self, config): BulkOperations.__init__(self, config) self.searchFields = ["RequestName", "RequestType"] try: self.dbsSender = JSONRequests(config.dbs3) except: logging.warning("Could not connect to DBS " + config.dbs3) self.dbsSender = None
def __init__(self, config): BulkOperations.__init__(self, config) self.wmstatWriteURL = "%s/%s" % (config.couchUrl.rstrip('/'), config.wmstatDBName) self.searchFields = ["RequestName", "RequestType"] try: self.dbsSender = JSONRequests(config.dbs3) except: logging.warning("Could not connect to DBS " + config.dbs3) self.dbsSender = None
def handleCloseOut(self, **kwargs): """ Handler for closing out requests """ requests = BulkOperations.requestNamesFromCheckboxes(self, kwargs) for requestName in requests: WMCore.Lexicon.identifier(requestName) ChangeState.changeRequestStatus(requestName, 'closed-out', wmstatUrl = self.wmstatWriteURL) return self.templatepage("Acknowledge", participle="closed out", requests=requests)
def handleCloseOut(self, **kwargs): """ Handler for closing out requests """ requests = BulkOperations.requestNamesFromCheckboxes(self, kwargs) for requestName in requests: WMCore.Lexicon.identifier(requestName) ChangeState.changeRequestStatus(requestName, 'closed-out', wmstatUrl=self.wmstatWriteURL) return self.templatepage("Acknowledge", participle="closed out", requests=requests)
def __init__(self, config): BulkOperations.__init__(self, config)
def __init__(self, config): BulkOperations.__init__(self, config) self.wmstatWriteURL = "%s/%s" % (config.couchUrl.rstrip('/'), config.wmstatDBName)