ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CRAB/python/DLSInfo.py
(Generate patch)

Comparing COMP/CRAB/python/DLSInfo.py (file contents):
Revision 1.32 by spiga, Tue Sep 22 22:05:18 2009 UTC vs.
Revision 1.37 by spiga, Tue May 4 15:42:36 2010 UTC

# Line 39 | Line 39 | class DLSInfo:
39          self.cfg_params = cfg_params
40          self.showCAF = False
41          self.showProd = False
42 +        self.subscribed = False    
43          subscribed =int(self.cfg_params.get('CMSSW.subscribed', 0))  
44          if subscribed == 1: self.subscribed = True
45          showProd = int(self.cfg_params.get('CMSSW.show_prod', 0))
# Line 46 | Line 47 | class DLSInfo:
47  
48          phedexURL='http://cmsweb.cern.ch/phedex/datasvc/xml/prod/'
49          global_url="http://cmsdbsprod.cern.ch/cms_dbs_prod_global/servlet/DBSServlet"
49        caf_url = "http://cmsdbsprod.cern.ch/cms_dbs_caf_analysis_01/servlet/DBSServlet"
50        dbs_url_map  =   {'glite':    global_url,
51                          'glitecoll':global_url,\
52                          'condor':   global_url,\
53                          'condor_g': global_url,\
54                          'glidein':  global_url,\
55                          'lsf':      global_url,\
56                          'caf':      caf_url,\
57                          'sge':      global_url,
58                          'arc':      global_url
59                          }
60        dbs_url_default = dbs_url_map[(common.scheduler.name()).lower()]
50  
51          if type=="DLS_TYPE_DBS":
52              # use dbs_url as dls_endpoint if dls_type is dbs
53 <            endpoint=self.cfg_params.get('CMSSW.dbs_url', dbs_url_default)
53 >            endpoint=self.cfg_params.get('CMSSW.dbs_url', global_url)
54          elif type=="DLS_TYPE_PHEDEX":
55              endpoint=self.cfg_params.get('CMSSW.dls_phedex_url',phedexURL)
56              if self.cfg_params['CRAB.scheduler'].upper() == 'CAF':  self.showCAF = True

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines