Functions | Variables
fnal Namespace Reference

Functions

def FetchLog (logfilename)
 

Variables

 samweb
 
 dh
 

Function Documentation

def fnal.FetchLog (   logfilename)

Definition at line 9 of file fnal.py.

9 def FetchLog(logfilename):
10  global dh, samweb
11  if not samweb:
12  samweb = samweb_client.SAMWebClient(experiment='nova')
13  if not dh:
14  dh = ifdh.ifdh("http://samweb.fnal.gov:8480/sam/nova/api")
15  try:
16  if not os.path.exists(logfilename):
17  print logfilename
18  path = samweb.locateFile(logfilename)[0]['full_path'].replace("enstore:","")
19  #print "Fetching", os.path.join(path, logfilename), "for", name
20  dh.cp(["-D", os.path.join(path, logfilename), "./"])
21  return logfilename
22 
24  print "Did not find", logfilename
25  except socket.error:
26  print "Connection trouble in", logfilename
27 
28 
def FetchLog(logfilename)
Definition: fnal.py:9

Variable Documentation

fnal.dh

Definition at line 7 of file fnal.py.

fnal.samweb

Definition at line 6 of file fnal.py.