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 11 of file BuildWebpage.py.

00012                      :
00013    if not os.path.isfile(myFile):
00014       raise IOError, "Error! Can't stat %s!" % myFile
00015    else:
00016       return myFile
00017 
00018 # 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 90 of file BuildWebpage.py.

string BuildWebpage::cfgdump = 'cfgDump.py'

Definition at line 39 of file BuildWebpage.py.

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

Definition at line 38 of file BuildWebpage.py.

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

Definition at line 23 of file BuildWebpage.py.

Definition at line 102 of file BuildWebpage.py.

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

Definition at line 104 of file BuildWebpage.py.

Definition at line 105 of file BuildWebpage.py.

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

Definition at line 19 of file BuildWebpage.py.

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

Definition at line 33 of file BuildWebpage.py.

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

Definition at line 32 of file BuildWebpage.py.

string BuildWebpage::difftotags = 'cvs diff'

Definition at line 36 of file BuildWebpage.py.

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

Definition at line 35 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 67 of file BuildWebpage.py.

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

Definition at line 48 of file BuildWebpage.py.

Definition at line 47 of file BuildWebpage.py.

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

Definition at line 86 of file BuildWebpage.py.

tuple BuildWebpage::ifile = open( indexhtml )

Definition at line 113 of file BuildWebpage.py.

string BuildWebpage::images = ''

Definition at line 77 of file BuildWebpage.py.

tuple BuildWebpage::img = imgTemplate%os.path.basename(picfile)

Definition at line 94 of file BuildWebpage.py.

Referenced by SiPixelTrackerMapCreator::create(), and evf::WebGUI::htmlHeadline().

string BuildWebpage::imgTemplate = '<IMG src="%s" width="500" align="left" border="0">'

Definition at line 66 of file BuildWebpage.py.

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

Definition at line 9 of file BuildWebpage.py.

tuple BuildWebpage::indexTemplate = ifile.read()

Definition at line 114 of file BuildWebpage.py.

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

Definition at line 136 of file BuildWebpage.py.

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

Definition at line 83 of file BuildWebpage.py.

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

Definition at line 62 of file BuildWebpage.py.

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

Definition at line 57 of file BuildWebpage.py.

tuple BuildWebpage::s = Template(indexTemplate)

Definition at line 116 of file BuildWebpage.py.

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

Definition at line 29 of file BuildWebpage.py.

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

Definition at line 80 of file BuildWebpage.py.

Definition at line 81 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 117 of file BuildWebpage.py.

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

Definition at line 20 of file BuildWebpage.py.

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

Definition at line 7 of file BuildWebpage.py.

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

Definition at line 6 of file BuildWebpage.py.