CMS 3D CMS Logo

Functions | Variables
relmon_rootfiles_spy Namespace Reference

Functions

def extract_list (page_html, the_server, display_url)
 
def get_page (url)
 

Variables

 action
 
 args
 
 bcontent
 
 contents
 
 default
 
 dest
 
 directory
 
 dirtolist
 
 help
 
 lenargs
 
 mode
 
 options
 
 parser
 
 usage
 

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 def extract_list(page_html,the_server,display_url):
34  contents=[]
35  for line in page_html.split("<tr><td>")[1:]:
36  name=""
37  #link
38  link_start=line.find("href='")+6
39  link_end=line.find("'>")
40  #name
41  name_start=link_end+2
42  name_end=line.find("</a>")
43  if display_url:
44  contents.append(the_server+line[link_start:link_end])
45  else:
46  contents.append(line[name_start:name_end])
47  return contents
48 
def extract_list(page_html, the_server, display_url)
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 estimatePileup.basename.

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

Variable Documentation

relmon_rootfiles_spy.action

Definition at line 63 of file relmon_rootfiles_spy.py.

relmon_rootfiles_spy.args

Definition at line 104 of file relmon_rootfiles_spy.py.

relmon_rootfiles_spy.bcontent

Definition at line 139 of file relmon_rootfiles_spy.py.

relmon_rootfiles_spy.contents
relmon_rootfiles_spy.default

Definition at line 65 of file relmon_rootfiles_spy.py.

relmon_rootfiles_spy.dest

Definition at line 64 of file relmon_rootfiles_spy.py.

relmon_rootfiles_spy.directory

Definition at line 126 of file relmon_rootfiles_spy.py.

relmon_rootfiles_spy.dirtolist

Definition at line 115 of file relmon_rootfiles_spy.py.

relmon_rootfiles_spy.help

Definition at line 66 of file relmon_rootfiles_spy.py.

relmon_rootfiles_spy.lenargs

Definition at line 110 of file relmon_rootfiles_spy.py.

relmon_rootfiles_spy.mode

Definition at line 119 of file relmon_rootfiles_spy.py.

relmon_rootfiles_spy.options

Definition at line 104 of file relmon_rootfiles_spy.py.

relmon_rootfiles_spy.parser

Definition at line 60 of file relmon_rootfiles_spy.py.

relmon_rootfiles_spy.usage

Definition at line 60 of file relmon_rootfiles_spy.py.