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

Comparing COMP/CRAB/python/JdlWriter.py (file contents):
Revision 1.3 by slacapra, Thu Jan 8 15:12:30 2009 UTC vs.
Revision 1.4 by slacapra, Thu Jan 8 15:49:30 2009 UTC

# Line 13 | Line 13 | class JdlWriter( Actor ):
13          seWhiteList = cfg_params.get('EDG.se_white_list',[])
14          seBlackList = cfg_params.get('EDG.se_black_list',[])
15          self.blackWhiteListParser = SEBlackWhiteListParser(seWhiteList, seBlackList, common.logger)
16 +        self.datasetpath=self.cfg_params['CMSSW.datasetpath']
17 +        if string.lower(self.datasetpath)=='none':
18 +            self.datasetpath = None
19  
20          return
21  
# Line 48 | Line 51 | class JdlWriter( Actor ):
51          count=0
52          for distDest in distinct_dests:
53              dest = self.blackWhiteListParser.cleanForBlackWhiteList(distDest)
54 <            if not dest:
54 >            if not dest and self.datasetpath:
55                  common.logger.message('No destination available: will not create jdl \n' )
56                  continue
57              all_jobs.append(common._db.queryAttrJob({'dlsDestination':distDest},'jobId'))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines