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 33 of file relmon_rootfiles_spy.py.

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

Definition at line 49 of file relmon_rootfiles_spy.py.

References SiPixelLorentzAngle_cfi.read.

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

Variable Documentation

string relmon_rootfiles_spy.action = "store_true"

Definition at line 63 of file relmon_rootfiles_spy.py.

tuple relmon_rootfiles_spy.bcontent = basename(content)

Definition at line 139 of file relmon_rootfiles_spy.py.

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

Definition at line 128 of file relmon_rootfiles_spy.py.

Referenced by FastLineRecognition::Cluster.add(), FastFedCablingAlgorithm.analyse(), DaqScopeModeAlgorithm.analyse(), SiStripCommissioningOfflineClient.beginRun(), SiPixelActionExecutor.fillFEDErrorSummary(), SiPixelDataQuality.fillGlobalQualityPlot(), SiPixelActionExecutor.fillGrandBarrelSummaryHistos(), SiPixelActionExecutor.fillGrandEndcapSummaryHistos(), SiStripSummaryCreator.fillGrandSummaryHistos(), SiPixelActionExecutor.fillSummary(), SiStripSummaryCreator.fillSummaryHistos(), QTestStatusChecker.fullPathNames(), SiPixelActionExecutor.getFEDSummaryME(), SiPixelActionExecutor.getGrandSummaryME(), FastLineRecognition.getOneLine(), SiStripSummaryCreator.getSummaryME(), SiPixelActionExecutor.getSummaryME(), L1GctGlobalHfSumAlgos.hfSumsOutput(), Comp2RefEqualH.runTest(), ContentsXRange.runTest(), ContentsYRange.runTest(), DeadChannel.runTest(), NoisyChannel.runTest(), CheckVariance.runTest(), and DQMStore.showDirStructure().

string relmon_rootfiles_spy.default = False,

Definition at line 65 of file relmon_rootfiles_spy.py.

string relmon_rootfiles_spy.dest = "development"

Definition at line 64 of file relmon_rootfiles_spy.py.

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

Definition at line 126 of file relmon_rootfiles_spy.py.

list relmon_rootfiles_spy.dirtolist = ""

Definition at line 115 of file relmon_rootfiles_spy.py.

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

Definition at line 66 of file relmon_rootfiles_spy.py.

tuple relmon_rootfiles_spy.lenargs = len(args)

Definition at line 110 of file relmon_rootfiles_spy.py.

string relmon_rootfiles_spy.mode = "relval"

Definition at line 119 of file relmon_rootfiles_spy.py.

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

Definition at line 60 of file relmon_rootfiles_spy.py.