CMS 3D CMS Logo

Functions | Variables

BuildWebpage Namespace Reference

Functions

def CheckFile

Variables

string captionsContents = ""
string cfgdump = 'cfgDump.py'
string cfgdumplink = 'Config/cfgDump.py'
list cmssw = os.environ['CMSSW_VERSION']
string comments = ""
tuple ComparisionDirectories = filter(os.path.isdir, glob.glob("ComparedTo*"))
string comparisonlinks = ""
tuple currentpath = os.path.abspath(os.getcwd())
tuple date = os.popen( 'date' )
string difftorelease = "cvs diff -r %s"
tuple difftoreleaselink = CheckFile('Config/diffToVanillaRelease.patch')
string difftotags = 'cvs diff'
tuple difftotagslink = CheckFile('Config/diffToTags.patch')
string fourImages
string genConfig = "fastsim (see cfgDump)"
 genConfigLink = cfgdumplink
tuple getByVar = lambdax:glob.glob(os.path.join(aDir, '*%s.png' % x))
tuple ifile = open( indexhtml )
string images = ''
tuple img = imgTemplate%os.path.basename(picfile)
string imgTemplate = '<IMG src="%s" width="500" align="left" border="0">'
tuple indexhtml = os.path.join(validationToolsDir, "templates", "index.html")
tuple indexTemplate = ifile.read()
tuple ofile = open( 'index.html', 'w' )
tuple producerName = os.path.basename(aDir)
 rootFile = rootFileLink
tuple rootFileLink = os.path.basename(rootFiles[0])
tuple rootFiles = glob.glob("*root")
tuple s = Template(indexTemplate)
tuple showTags = os.popen("cat %s" % CheckFile('Config/showtags.txt'))
tuple StepByStepPlotDirectories = filter(os.path.isdir, glob.glob("SummaryPlots/*"))
list StepByStepPlots = []
tuple subst
tuple title = currentpath.replace(os.path.abspath(validationTestDir), '')
list validationTestDir = os.environ['VALTEST']
list validationToolsDir = os.environ['VALTOOLS']

Function Documentation

def BuildWebpage::CheckFile (   myFile)

Definition at line 12 of file BuildWebpage.py.

00013                      :
00014    if not os.path.isfile(myFile):
00015       raise IOError, "Error! Can't stat %s!" % myFile
00016    else:
00017       return myFile
00018 
00019 # Get our path relative to the Validation/RecoTau/test directory
#title = os.path.relpath(os.cwd(), validationTestDir) python > 2.6

Variable Documentation

Definition at line 97 of file BuildWebpage.py.

string BuildWebpage::cfgdump = 'cfgDump.py'

Definition at line 40 of file BuildWebpage.py.

string BuildWebpage::cfgdumplink = 'Config/cfgDump.py'

Definition at line 39 of file BuildWebpage.py.

list BuildWebpage::cmssw = os.environ['CMSSW_VERSION']

Definition at line 24 of file BuildWebpage.py.

Definition at line 109 of file BuildWebpage.py.

tuple BuildWebpage::ComparisionDirectories = filter(os.path.isdir, glob.glob("ComparedTo*"))

Definition at line 111 of file BuildWebpage.py.

Definition at line 112 of file BuildWebpage.py.

tuple BuildWebpage::currentpath = os.path.abspath(os.getcwd())

Definition at line 20 of file BuildWebpage.py.

tuple BuildWebpage::date = os.popen( 'date' )
string BuildWebpage::difftorelease = "cvs diff -r %s"

Definition at line 34 of file BuildWebpage.py.

tuple BuildWebpage::difftoreleaselink = CheckFile('Config/diffToVanillaRelease.patch')

Definition at line 33 of file BuildWebpage.py.

string BuildWebpage::difftotags = 'cvs diff'

Definition at line 37 of file BuildWebpage.py.

tuple BuildWebpage::difftotagslink = CheckFile('Config/diffToTags.patch')

Definition at line 36 of file BuildWebpage.py.

Initial value:
00001 '<table style="text-align: left; " border="1" cellpadding="2" cellspacing="0">\n\
00002                      <tbody>\n\
00003                      <tr>\n\
00004                      <td style="width: 350px;"><IMG src="%s" width="350" align="left" border="0"></td>\
00005                      <td style="width: 350px;"><IMG src="%s" width="350" align="left" border="0"></td>\
00006                      <td style="width: 350px;"><IMG src="%s" width="350" align="left" border="0"></td>\
00007                      <td style="width: 350px;"><IMG src="%s" width="350" align="left" border="0"></td>\
00008                      </tr></tbody></table>\n\
00009                      '

Definition at line 74 of file BuildWebpage.py.

string BuildWebpage::genConfig = "fastsim (see cfgDump)"

Definition at line 55 of file BuildWebpage.py.

Definition at line 54 of file BuildWebpage.py.

tuple BuildWebpage::getByVar = lambdax:glob.glob(os.path.join(aDir, '*%s.png' % x))

Definition at line 93 of file BuildWebpage.py.

tuple BuildWebpage::ifile = open( indexhtml )

Definition at line 120 of file BuildWebpage.py.

string BuildWebpage::images = ''

Definition at line 84 of file BuildWebpage.py.

tuple BuildWebpage::img = imgTemplate%os.path.basename(picfile)
string BuildWebpage::imgTemplate = '<IMG src="%s" width="500" align="left" border="0">'

Definition at line 73 of file BuildWebpage.py.

tuple BuildWebpage::indexhtml = os.path.join(validationToolsDir, "templates", "index.html")

Definition at line 10 of file BuildWebpage.py.

tuple BuildWebpage::indexTemplate = ifile.read()

Definition at line 121 of file BuildWebpage.py.

tuple BuildWebpage::ofile = open( 'index.html', 'w' )

Definition at line 143 of file BuildWebpage.py.

tuple BuildWebpage::producerName = os.path.basename(aDir)

Definition at line 90 of file BuildWebpage.py.

tuple BuildWebpage::rootFileLink = os.path.basename(rootFiles[0])

Definition at line 69 of file BuildWebpage.py.

tuple BuildWebpage::rootFiles = glob.glob("*root")

Definition at line 64 of file BuildWebpage.py.

tuple BuildWebpage::s = Template(indexTemplate)

Definition at line 123 of file BuildWebpage.py.

tuple BuildWebpage::showTags = os.popen("cat %s" % CheckFile('Config/showtags.txt'))

Definition at line 30 of file BuildWebpage.py.

tuple BuildWebpage::StepByStepPlotDirectories = filter(os.path.isdir, glob.glob("SummaryPlots/*"))

Definition at line 87 of file BuildWebpage.py.

Definition at line 88 of file BuildWebpage.py.

Initial value:
00001 s.substitute(title = title,
00002                      difftotagslink=difftotagslink,
00003                      difftotags=difftotags,
00004                      difftoreleaselink=difftoreleaselink,
00005                      difftorelease=difftorelease,
00006                      cfgdumplink=cfgdumplink,
00007                      cfgdump=cfgdump,
00008                      comparisonlinks=comparisonlinks,
00009                      genConfig = os.path.basename(genConfig),
00010                      genConfigLink = genConfigLink,
00011                      rootFile =  os.path.basename(rootFile), 
00012                      rootFileLink =  rootFileLink, 
00013                      comments = comments,
00014                      cmssw = cmssw,
00015                      showTags = showTags,
00016                      images = images, 
00017                      username = os.environ['USER'],
00018                      date = date
00019                      )

Definition at line 124 of file BuildWebpage.py.

tuple BuildWebpage::title = currentpath.replace(os.path.abspath(validationTestDir), '')

Definition at line 21 of file BuildWebpage.py.

list BuildWebpage::validationTestDir = os.environ['VALTEST']

Definition at line 8 of file BuildWebpage.py.

list BuildWebpage::validationToolsDir = os.environ['VALTOOLS']

Definition at line 7 of file BuildWebpage.py.