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 93 of file helpers.py.

Constructor & Destructor Documentation

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

Definition at line 95 of file helpers.py.

95 
96  def __init__(self,paramName,paramSearch,paramValue,verbose=False):
97  self._paramName = paramName
98  self._paramValue = paramValue
99  self._paramSearch = paramSearch
self._verbose = verbose

Member Function Documentation

def helpers.MassSearchReplaceParamVisitor.enter (   self,
  visitee 
)

Definition at line 100 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.

101  def enter(self,visitee):
102  if (hasattr(visitee,self._paramName)):
103  if getattr(visitee,self._paramName) == self._paramSearch:
104  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 105 of file helpers.py.

106  def leave(self,visitee):
107  pass

Member Data Documentation

helpers.MassSearchReplaceParamVisitor._paramName
private

Definition at line 96 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 98 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 97 of file helpers.py.

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

helpers.MassSearchReplaceParamVisitor._verbose
private

Definition at line 99 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().