CMS 3D CMS Logo

Classes | Functions
cond2xml Namespace Reference

Classes

class  CondXmlProcessor
 

Functions

def localLibName (payloadType)
 
def sanitize (typeName)
 

Function Documentation

def cond2xml.localLibName (   payloadType)

Definition at line 43 of file cond2xml.py.

References sanitize().

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

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

Definition at line 40 of file cond2xml.py.

References python.rootplot.root2matplotlib.replace().

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

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