CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
relmon_rootfiles_spy Namespace Reference

Functions

def extract_list
 
def get_page
 

Variables

string action = "store_true"
 
tuple bcontent = basename(content)
 
tuple contents = extract_list(get_page(directory),server,options.show_url)
 
 default = False,
 
string dest = "development"
 
string directory = "%s/dqm/%s/data/browse/%s"
 
string dirtolist = ""
 
string help = "Select the development GUI instance."
 
tuple lenargs = len(args)
 
string mode = "relval"
 
tuple parser = OptionParser(usage="usage: %prog [options] dirtolist")
 

Function Documentation

def relmon_rootfiles_spy.extract_list (   page_html,
  the_server,
  display_url 
)

Definition at line 36 of file relmon_rootfiles_spy.py.

36 
37 def extract_list(page_html,the_server,display_url):
38  contents=[]
39  for line in page_html.split("<tr><td>")[1:]:
40  name=""
41  #link
42  link_start=line.find("href='")+6
43  link_end=line.find("'>")
44  #name
45  name_start=link_end+2
46  name_end=line.find("</a>")
47  if display_url:
48  contents.append(the_server+line[link_start:link_end])
49  else:
50  contents.append(line[name_start:name_end])
51  return contents
def relmon_rootfiles_spy.get_page (   url)
Get the web page listing the rootfiles. Use the X509 auth.

Definition at line 52 of file relmon_rootfiles_spy.py.

References SiPixelLorentzAngle_cfi.read.

52 
53 def get_page(url):
54  """ Get the web page listing the rootfiles. Use the X509 auth.
55  """
56  opener=build_opener(X509CertOpen())
57  datareq = Request(url)
58  datareq.add_header('authenticated_wget', "The ultimate wgetter")
59  filename=basename(url)
60  return opener.open(datareq).read()

Variable Documentation

string relmon_rootfiles_spy.action = "store_true"

Definition at line 66 of file relmon_rootfiles_spy.py.

tuple relmon_rootfiles_spy.bcontent = basename(content)

Definition at line 142 of file relmon_rootfiles_spy.py.

tuple relmon_rootfiles_spy.contents = extract_list(get_page(directory),server,options.show_url)

Definition at line 131 of file relmon_rootfiles_spy.py.

Referenced by FastFedCablingAlgorithm.analyse(), DaqScopeModeAlgorithm.analyse(), SiPixelDigiSource.analyze(), SiStripCommissioningOfflineClient.beginRun(), SiPixelActionExecutor.checkQTestResults(), SiPixelActionExecutor.dumpBarrelModIds(), SiPixelActionExecutor.dumpEndcapModIds(), SiPixelActionExecutor.fillFEDErrorSummary(), SiPixelDataQuality.fillGlobalQualityPlot(), SiPixelActionExecutor.fillGrandBarrelSummaryHistos(), SiPixelActionExecutor.fillGrandEndcapSummaryHistos(), SiStripSummaryCreator.fillGrandSummaryHistos(), SiPixelActionExecutor.fillLayout(), SiPixelInformationExtractor.fillModuleAndHistoList(), SiPixelActionExecutor.fillSummary(), SiStripSummaryCreator.fillSummaryHistos(), QTestStatusChecker.fullPathNames(), SiPixelActionExecutor.getData(), SiPixelActionExecutor.getFEDSummaryME(), SiPixelActionExecutor.getGrandSummaryME(), SiPixelInformationExtractor.getMEList(), SiStripSummaryCreator.getSummaryME(), SiPixelActionExecutor.getSummaryME(), L1GctGlobalHfSumAlgos.hfSumsOutput(), ecaldqm::TowerStatusTask.runOnTowerStatus(), Comp2RefEqualH.runTest(), ContentsXRange.runTest(), ContentsYRange.runTest(), DeadChannel.runTest(), NoisyChannel.runTest(), SiPixelInformationExtractor.selectMEList(), and DQMStore.showDirStructure().

string relmon_rootfiles_spy.default = False,

Definition at line 68 of file relmon_rootfiles_spy.py.

string relmon_rootfiles_spy.dest = "development"

Definition at line 67 of file relmon_rootfiles_spy.py.

string relmon_rootfiles_spy.directory = "%s/dqm/%s/data/browse/%s"

Definition at line 129 of file relmon_rootfiles_spy.py.

list relmon_rootfiles_spy.dirtolist = ""

Definition at line 118 of file relmon_rootfiles_spy.py.

string relmon_rootfiles_spy.help = "Select the development GUI instance."

Definition at line 69 of file relmon_rootfiles_spy.py.

tuple relmon_rootfiles_spy.lenargs = len(args)

Definition at line 113 of file relmon_rootfiles_spy.py.

string relmon_rootfiles_spy.mode = "relval"

Definition at line 122 of file relmon_rootfiles_spy.py.

tuple relmon_rootfiles_spy.parser = OptionParser(usage="usage: %prog [options] dirtolist")

Definition at line 63 of file relmon_rootfiles_spy.py.