예제 #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"]
예제 #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
예제 #3
0
파일: Announce.py 프로젝트: stuartw/WMCore
 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
예제 #4
0
파일: Announce.py 프로젝트: ticoann/WMCore
 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
예제 #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)
예제 #6
0
파일: CloseOut.py 프로젝트: tsarangi/WMCore
 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)
예제 #7
0
 def __init__(self, config):
     BulkOperations.__init__(self, config)
예제 #8
0
 def __init__(self, config):
     BulkOperations.__init__(self, config)
     self.wmstatWriteURL = "%s/%s" % (config.couchUrl.rstrip('/'), config.wmstatDBName)
예제 #9
0
파일: CloseOut.py 프로젝트: tsarangi/WMCore
 def __init__(self, config):
     BulkOperations.__init__(self, config)
     self.wmstatWriteURL = "%s/%s" % (config.couchUrl.rstrip('/'),
                                      config.wmstatDBName)