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

◆ extract_list()

def relmon_rootfiles_spy.extract_list (   page_html,
  the_server,
  display_url 
)

Definition at line 34 of file relmon_rootfiles_spy.py.

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
49 
def extract_list(page_html, the_server, display_url)

◆ get_page()

def relmon_rootfiles_spy.get_page (   url)
Get the web page listing the rootfiles. Use the X509 auth.

Definition at line 50 of file relmon_rootfiles_spy.py.

References fileinputsource_cfi.read.

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()
58 

Variable Documentation

◆ action

relmon_rootfiles_spy.action

Definition at line 64 of file relmon_rootfiles_spy.py.

◆ args

relmon_rootfiles_spy.args

Definition at line 105 of file relmon_rootfiles_spy.py.

◆ bcontent

relmon_rootfiles_spy.bcontent

Definition at line 140 of file relmon_rootfiles_spy.py.

◆ contents

relmon_rootfiles_spy.contents

◆ default

relmon_rootfiles_spy.default

Definition at line 66 of file relmon_rootfiles_spy.py.

◆ dest

relmon_rootfiles_spy.dest

Definition at line 65 of file relmon_rootfiles_spy.py.

◆ directory

relmon_rootfiles_spy.directory

Definition at line 127 of file relmon_rootfiles_spy.py.

◆ dirtolist

relmon_rootfiles_spy.dirtolist

Definition at line 116 of file relmon_rootfiles_spy.py.

◆ help

relmon_rootfiles_spy.help

Definition at line 67 of file relmon_rootfiles_spy.py.

◆ lenargs

relmon_rootfiles_spy.lenargs

Definition at line 111 of file relmon_rootfiles_spy.py.

◆ mode

relmon_rootfiles_spy.mode

Definition at line 120 of file relmon_rootfiles_spy.py.

◆ options

relmon_rootfiles_spy.options

Definition at line 105 of file relmon_rootfiles_spy.py.

◆ parser

relmon_rootfiles_spy.parser

Definition at line 61 of file relmon_rootfiles_spy.py.

◆ usage

relmon_rootfiles_spy.usage

Definition at line 61 of file relmon_rootfiles_spy.py.