def __init__(self, config, datasetExpr, datasetNick, datasetID = 0):
		CMSProvider.__init__(self, config, datasetExpr, datasetNick, datasetID)
		self.usePhedex = (self.url == '') # Use DBS locality for private samples
		if self.url == '':
			self.url = 'https://cmsweb.cern.ch/dbs/prod/global/DBSReader'
		elif '/' not in self.url: # assume prod instance
			self.url = 'https://cmsweb.cern.ch/dbs/prod/%s/DBSReader' % self.url
		elif not self.url.startswith('http'): # eg. prod/phys03
			self.url = 'https://cmsweb.cern.ch/dbs/%s/DBSReader' % self.url
	def __init__(self, config, datasetExpr, datasetNick, datasetID = 0):
		CMSProvider.__init__(self, config, datasetExpr, datasetNick, datasetID)
		self._instance = ''
		if '/' not in self.url:
			self._instance = 'prod/%s' % self.url
			self.url = ''
		elif not self.url.startswith('http'):
			self._instance = self.url
			self.url = ''
		self.url = utils.QM(self.url == '', 'https://cmsweb.cern.ch/das/cache', self.url)
	def __init__(self, config, datasetExpr, datasetNick = None, datasetID = 0):
		CMSProvider.__init__(self, config, datasetExpr, datasetNick, datasetID)
		self._instance = ''
		if '/' not in self._url:
			self._instance = 'prod/%s' % self._url
			self._url = ''
		elif not self._url.startswith('http'):
			self._instance = self._url
			self._url = ''
		self._url = self._url or 'https://cmsweb.cern.ch/das/cache'
		self._gjrc = GridJSONRestClient(self._url, 'VOMS proxy needed to query DAS!', UserError)
Exemple #4
0
 def __init__(self, config, datasetExpr, datasetNick=None, datasetID=0):
     CMSProvider.__init__(self, config, datasetExpr, datasetNick, datasetID)
     self._instance = ''
     if '/' not in self._url:
         self._instance = 'prod/%s' % self._url
         self._url = ''
     elif not self._url.startswith('http'):
         self._instance = self._url
         self._url = ''
     self._url = self._url or 'https://cmsweb.cern.ch/das/cache'
     self._gjrc = GridJSONRestClient(self._url,
                                     'VOMS proxy needed to query DAS!',
                                     UserError)
 def __init__(self, config, datasetExpr, datasetNick=None, datasetID=0):
     CMSProvider.__init__(self, config, datasetExpr, datasetNick, datasetID)
     url_global_inst = 'https://cmsweb.cern.ch/dbs/prod/global/DBSReader'
     if self._url == '':
         self._url = url_global_inst
     elif '/' not in self._url:  # assume prod instance
         self._url = 'https://cmsweb.cern.ch/dbs/prod/%s/DBSReader' % self._url
     elif not self._url.startswith('http'):  # eg. prod/phys03
         self._url = 'https://cmsweb.cern.ch/dbs/%s/DBSReader' % self._url
     self.usePhedex = (self._url == url_global_inst
                       )  # Use DBS locality for private samples
     self._gjrc = GridJSONRestClient(self._url,
                                     'VOMS proxy needed to query DBS3!',
                                     UserError)