test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
helpers.MassSearchReplaceParamVisitor Class Reference
Inheritance diagram for helpers.MassSearchReplaceParamVisitor:

Public Member Functions

def __init__
 
def enter
 
def leave
 

Private Attributes

 _paramName
 
 _paramSearch
 
 _paramValue
 
 _verbose
 

Detailed Description

Visitor that travels within a cms.Sequence, looks for a parameter and replaces its value

Definition at line 99 of file helpers.py.

Constructor & Destructor Documentation

def helpers.MassSearchReplaceParamVisitor.__init__ (   self,
  paramName,
  paramSearch,
  paramValue,
  verbose = False 
)

Definition at line 101 of file helpers.py.

102  def __init__(self,paramName,paramSearch,paramValue,verbose=False):
103  self._paramName = paramName
104  self._paramValue = paramValue
105  self._paramSearch = paramSearch
self._verbose = verbose

Member Function Documentation

def helpers.MassSearchReplaceParamVisitor.enter (   self,
  visitee 
)

Definition at line 106 of file helpers.py.

References helpers.MassSearchReplaceParamVisitor._paramName, helpers.MassSearchReplaceParamVisitor._paramSearch, ConfigBuilder.ConfigBuilder.MassSearchReplaceProcessNameVisitor._paramSearch, helpers.MassSearchReplaceParamVisitor._paramValue, HTMHTAnalyzer._verbose, helpers.MassSearchReplaceParamVisitor._verbose, and ConfigBuilder.ConfigBuilder.MassSearchReplaceProcessNameVisitor._verbose.

107  def enter(self,visitee):
108  if (hasattr(visitee,self._paramName)):
109  if getattr(visitee,self._paramName) == self._paramSearch:
110  if self._verbose:print "Replaced %s.%s: %s => %s" % (visitee,self._paramName,getattr(visitee,self._paramName),self._paramValue)
setattr(visitee,self._paramName,self._paramValue)
def helpers.MassSearchReplaceParamVisitor.leave (   self,
  visitee 
)

Definition at line 111 of file helpers.py.

112  def leave(self,visitee):
113  pass

Member Data Documentation

helpers.MassSearchReplaceParamVisitor._paramName
private

Definition at line 102 of file helpers.py.

Referenced by HiHelperTools.MassSearchReplaceParamVisitor.enter(), helpers.MassSearchReplaceParamVisitor.enter(), HiHelperTools.MassSearchParamVisitor.enter(), and helpers.MassSearchParamVisitor.enter().

helpers.MassSearchReplaceParamVisitor._paramSearch
private

Definition at line 104 of file helpers.py.

Referenced by HiHelperTools.MassSearchReplaceAnyInputTagVisitor.doIt(), helpers.MassSearchReplaceAnyInputTagVisitor.doIt(), HiHelperTools.MassSearchReplaceParamVisitor.enter(), helpers.MassSearchReplaceParamVisitor.enter(), HiHelperTools.MassSearchParamVisitor.enter(), and helpers.MassSearchParamVisitor.enter().

helpers.MassSearchReplaceParamVisitor._paramValue
private

Definition at line 103 of file helpers.py.

Referenced by HiHelperTools.MassSearchReplaceParamVisitor.enter(), and helpers.MassSearchReplaceParamVisitor.enter().

helpers.MassSearchReplaceParamVisitor._verbose
private

Definition at line 105 of file helpers.py.

Referenced by HiHelperTools.MassSearchReplaceAnyInputTagVisitor.doIt(), helpers.MassSearchReplaceAnyInputTagVisitor.doIt(), HiHelperTools.MassSearchReplaceParamVisitor.enter(), helpers.MassSearchReplaceParamVisitor.enter(), cmsPerfSuite.PerfSuite.mkCandleDir(), cmsPerfSuite.PerfSuite.optionParse(), cmsPerfSuite.PerfSuite.printFlush(), cmsPerfSuite.PerfSuite.runcmd(), and cmsPerfSuite.PerfSuite.runCmdSet().