CMS 3D CMS Logo

Classes | Functions
HTMLExport Namespace Reference

Classes

class  HTMLExport
 
class  HTMLExportStatic
 

Functions

def elem (elemtype, innerHTML='', html_class='', kwargs)
 
def get_jquery ()
 

Function Documentation

def HTMLExport.elem (   elemtype,
  innerHTML = '',
  html_class = '',
  kwargs 
)

Definition at line 18 of file HTMLExport.py.

References join().

Referenced by SiStripGainFromCalibTree.algoBeginJob(), HistoAnalyzer< C >.analyze(), BeamProfileVtxGenerator.BeamProfileVtxGenerator(), DDHtmlMaDetails.details(), lhef::LHEReader::XMLHandler.endElement(), edm::FileRandomKEThetaGunProducer.FileRandomKEThetaGunProducer(), AlCaElectronsTest.fillAroundBarrel(), DQMSourceEleCalib.fillAroundBarrel(), AlCaElectronsTest.fillAroundEndcap(), DQMSourceEleCalib.fillAroundEndcap(), PhysicsTools::MVATrainer.fillInputVars(), PhysicsTools::MVATrainer.fillOutputVars(), SherpaHadronizer.generatePartonsAndHadronize(), get_jquery(), PFBlockBasedIsolation.getHighestEtECALCluster(), AlCaElectronsTest.getMaximum(), XMLDocument.getRootNode(), PhysicsTools::LeastSquares.getRotation(), TrackTimingImporter.importToBlock(), PhysicsTools::LeastSquares.load(), PhysicsTools::MVATrainer.makeProcessor(), PhysicsTools::MVATrainer.MVATrainer(), PFBlockLink.neighbour(), CSCRecoConditions.noiseMatrix(), CalIsolationAlgoNoExp< T1, C2 >.operator()(), TrkCalIsolationAlgo< T1, C2 >.operator()(), PtIsolationAlgo< T, C >.operator()(), CalIsolationAlgo< T1, C2 >.operator()(), SummaryPlotXmlParser.parseXML(), PixelClusterShapeExtractor.processPixelRecHits(), NtpProducer< C >.produce(), SimPFProducer.produce(), HTMLExport.HTMLExportStatic.produce(), SiStripRegionConnectivity.produceRegionCabling(), l1t::XmlConfigParser.readContext(), l1t::XmlConfigParser.readContexts(), l1t::XmlConfigParser.readHwDescription(), TopologyWorker.setPartList(), SiStripConfObject::get< std::vector< int > >(), SiStripConfObject::get< std::vector< std::string > >(), SiStripConfObject::put< std::vector< int > >(), SiStripConfObject::put< std::vector< std::string > >(), SiStripConfObject::update< std::vector< int > >(), SiStripConfObject::update< std::vector< std::string > >(), lhef::LHEReader::XMLHandler.startElement(), and EwkMuLumiMonitorDQM.tkIso().

18 def elem(elemtype, innerHTML='', html_class='', **kwargs):
19  if html_class: #since 'class' cannot be used as a kwarg
20  kwargs['class'] = html_class
21  args = ' '.join(['%s="%s"' % i for i in kwargs.items()])
22  if args:
23  return "<%s %s>%s</%s>\n" % (elemtype, args, innerHTML, elemtype)
24  else:
25  return "<%s>%s</%s>\n" % (elemtype, innerHTML, elemtype)
26 
def elem(elemtype, innerHTML='', html_class='', kwargs)
Definition: HTMLExport.py:18
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
def HTMLExport.get_jquery ( )

Definition at line 27 of file HTMLExport.py.

References cmsPerfStripChart.dict, and elem().

Referenced by HTMLExport.HTMLExport.produce().

27 def get_jquery():
28  jquery_file = os.path.join(os.path.dirname(sys.modules[__name__].__file__), 'jquery-1.6.2.min.js')
29  if os.path.exists(jquery_file):
30  return elem('script', open(jquery_file).read(), type='text/javascript')
31  else:
32  return elem('script', type='text/javascript', src=JQUERY)
33 
def elem(elemtype, innerHTML='', html_class='', kwargs)
Definition: HTMLExport.py:18
def get_jquery()
Definition: HTMLExport.py:27