75 |
|
self.dataset_to_import.append(dataset) |
76 |
|
### |
77 |
|
|
78 |
+ |
self.import_all_parents = cfg_params.get('USER.publish_with_import_all_parents',0) |
79 |
|
self.skipOcheck=cfg_params.get('CMSSW.publish_zero_event',0) |
80 |
|
|
81 |
|
self.SEName='' |
89 |
|
def importParentDataset(self,globalDBS, datasetpath): |
90 |
|
""" |
91 |
|
""" |
91 |
– |
print " patch for importParentDataset: datasetpath = ", datasetpath |
92 |
– |
""" |
92 |
|
dbsWriter = DBSWriter(self.DBSURL,level='ERROR') |
93 |
|
|
94 |
|
try: |
95 |
< |
#dbsWriter.importDatasetWithoutParentage(globalDBS, datasetpath, self.DBSURL) |
96 |
< |
dbsWriter.importDataset(globalDBS, datasetpath, self.DBSURL) |
95 |
> |
if (self.import_all_parents=='1'): |
96 |
> |
common.logger.info("--->>> Importing all parents level") |
97 |
> |
dbsWriter.importDataset(globalDBS, datasetpath, self.DBSURL) |
98 |
> |
else: |
99 |
> |
common.logger.info("--->>> Importing only the datasetpath " + datasetpath) |
100 |
> |
dbsWriter.importDatasetWithoutParentage(globalDBS, datasetpath, self.DBSURL) |
101 |
|
except DBSWriterError, ex: |
102 |
|
msg = "Error importing dataset to be processed into local DBS\n" |
103 |
|
msg += "Source Dataset: %s\n" % datasetpath |
108 |
|
return 1 |
109 |
|
return 0 |
110 |
|
""" |
111 |
+ |
print " patch for importParentDataset: datasetpath = ", datasetpath |
112 |
|
try: |
113 |
|
args={} |
114 |
|
args['url']=self.DBSURL |
125 |
|
return 1 |
126 |
|
print "Done" |
127 |
|
return 0 |
128 |
< |
|
128 |
> |
""" |
129 |
|
def publishDataset(self,file): |
130 |
|
""" |
131 |
|
""" |