CMS 3D CMS Logo

Classes | Functions
cond2xml Namespace Reference

Classes

class  CondXmlProcessor
 

Functions

def boost_version_for_this_release ()
 
def localLibName (payloadType)
 
def sanitize (typeName)
 

Function Documentation

def cond2xml.boost_version_for_this_release ( )

Definition at line 51 of file cond2xml.py.

52  import pluginUtilities_payload2xml as mod2XML
53  bv = mod2XML.BoostVersion()
54  return bv.label
55 
def boost_version_for_this_release()
Definition: cond2xml.py:51
def cond2xml.localLibName (   payloadType)

Definition at line 44 of file cond2xml.py.

References sanitize().

Referenced by cond2xml.CondXmlProcessor.discover(), and cond2xml.CondXmlProcessor.prepPayload2xml().

44 def localLibName( payloadType ):
45  # required to avoid ( unlikely ) clashes between lib names from templates and lib names from classes
46  prefix = ''
47  if '<' in payloadType and '>' in payloadType:
48  prefix = 't'
49  return "%s_%spayload2xml" %(sanitize(payloadType),prefix)
50 
def localLibName(payloadType)
Definition: cond2xml.py:44
def sanitize(typeName)
Definition: cond2xml.py:41
def cond2xml.sanitize (   typeName)

Definition at line 41 of file cond2xml.py.

References python.rootplot.root2matplotlib.replace().

Referenced by localLibName(), and cond2xml.CondXmlProcessor.payload2xml().

41 def sanitize(typeName):
42  return typeName.replace(' ','').replace('<','_').replace('>','')
43 
def replace(string, replacements)
def sanitize(typeName)
Definition: cond2xml.py:41