CMS 3D CMS Logo

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

Public Member Functions

def __init__
 
def enter
 
def leave
 
def modules
 

Private Attributes

 _modules
 
 _paramName
 
 _paramSearch
 

Detailed Description

Visitor that travels within a cms.Sequence, looks for a parameter and returns a list of modules that have it

Definition at line 93 of file MassReplace.py.

Constructor & Destructor Documentation

def MassReplace.MassSearchParamVisitor.__init__ (   self,
  paramName,
  paramSearch 
)

Definition at line 95 of file MassReplace.py.

95 
96  def __init__(self,paramName,paramSearch):
97  self._paramName = paramName
98  self._paramSearch = paramSearch
self._modules = []

Member Function Documentation

def MassReplace.MassSearchParamVisitor.enter (   self,
  visitee 
)

Definition at line 99 of file MassReplace.py.

References MassReplace.MassSearchParamVisitor._paramName, MassReplace.MassSearchReplaceAnyInputTagVisitor._paramSearch, MassReplace.MassSearchParamVisitor._paramSearch, and ConfigBuilder.ConfigBuilder.MassSearchReplaceProcessNameVisitor._paramSearch.

99 
100  def enter(self,visitee):
101  if (hasattr(visitee,self._paramName)):
102  if getattr(visitee,self._paramName) == self._paramSearch:
self._modules.append(visitee)
def MassReplace.MassSearchParamVisitor.leave (   self,
  visitee 
)

Definition at line 103 of file MassReplace.py.

104  def leave(self,visitee):
pass
def MassReplace.MassSearchParamVisitor.modules (   self)

Definition at line 105 of file MassReplace.py.

106  def modules(self):
107  return self._modules

Member Data Documentation

MassReplace.MassSearchParamVisitor._modules
private

Definition at line 98 of file MassReplace.py.

Referenced by MassReplace.MassSearchParamVisitor.modules(), and helpers.GatherAllModulesVisitor.modules().

MassReplace.MassSearchParamVisitor._paramName
private

Definition at line 96 of file MassReplace.py.

Referenced by MassReplace.MassSearchReplaceParamVisitor.doIt(), and MassReplace.MassSearchParamVisitor.enter().

MassReplace.MassSearchParamVisitor._paramSearch
private

Definition at line 97 of file MassReplace.py.

Referenced by MassReplace.MassSearchReplaceParamVisitor.doIt(), and MassReplace.MassSearchParamVisitor.enter().