Ejemplo n.º 1
0
 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"]
Ejemplo n.º 2
0
 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
Ejemplo n.º 3
0
 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
Ejemplo n.º 4
0
 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
Ejemplo n.º 5
0
 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)
Ejemplo n.º 6
0
 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)
Ejemplo n.º 7
0
 def __init__(self, config):
     BulkOperations.__init__(self, config)
Ejemplo n.º 8
0
 def __init__(self, config):
     BulkOperations.__init__(self, config)
     self.wmstatWriteURL = "%s/%s" % (config.couchUrl.rstrip('/'), config.wmstatDBName)
Ejemplo n.º 9
0
 def __init__(self, config):
     BulkOperations.__init__(self, config)
     self.wmstatWriteURL = "%s/%s" % (config.couchUrl.rstrip('/'),
                                      config.wmstatDBName)