24 stderr.write(
"Querying run registry for range [%d, %d], group name like %s ...\n" % (options.firstRun, options.lastRun, options.groupName))
27 server = xmlrpclib.ServerProxy(options.rrurl)
28 run_data = server.DataExporter.export(
'RUN',
'GLOBAL',
'xml_datasets',
"{runNumber} >= %d AND {runNumber} <= %d AND {groupName} like '%s' AND {datasetName} = '/Global/Online/ALL'" % (options.firstRun, options.lastRun, options.groupName))
30 xml_data = xml.dom.minidom.parseString(run_data)
31 xml_runs = xml_data.documentElement.getElementsByTagName(
"RUN_DATASET")
32 for xml_run
in xml_runs:
33 ret[xml_run.getElementsByTagName(
"RUN_NUMBER")[0].firstChild.nodeValue] = xml_run.getElementsByTagName(
"RUN_HLTKEY")[0].firstChild.nodeValue