Public Member Functions | |
def | __init__ |
def | enter |
def | leave |
Private Attributes | |
_paramName | |
_paramSearch | |
_paramValue | |
_verbose |
Visitor that travels within a cms.Sequence, looks for a parameter and replaces its value
Definition at line 35 of file HiHelperTools.py.
def HiHelperTools::MassSearchReplaceParamVisitor::__init__ | ( | self, | |
paramName, | |||
paramSearch, | |||
paramValue, | |||
verbose = False |
|||
) |
Definition at line 37 of file HiHelperTools.py.
def HiHelperTools::MassSearchReplaceParamVisitor::enter | ( | self, | |
visitee | |||
) |
Definition at line 42 of file HiHelperTools.py.
00043 : 00044 if (hasattr(visitee,self._paramName)): 00045 if getattr(visitee,self._paramName) == self._paramSearch: 00046 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 HiHelperTools::MassSearchReplaceParamVisitor::leave | ( | self, | |
visitee | |||
) |
Definition at line 47 of file HiHelperTools.py.
Definition at line 37 of file HiHelperTools.py.
Definition at line 37 of file HiHelperTools.py.
Definition at line 37 of file HiHelperTools.py.
Definition at line 37 of file HiHelperTools.py.