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.MassSearchParamVisitor Class Reference
Inheritance diagram for helpers.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 242 of file helpers.py.

Constructor & Destructor Documentation

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

Definition at line 244 of file helpers.py.

245  def __init__(self,paramName,paramSearch):
246  self._paramName = paramName
247  self._paramSearch = paramSearch
self._modules = []

Member Function Documentation

def helpers.MassSearchParamVisitor.enter (   self,
  visitee 
)

Definition at line 248 of file helpers.py.

References helpers.MassSearchReplaceParamVisitor._paramName, helpers.MassSearchParamVisitor._paramName, helpers.MassSearchReplaceParamVisitor._paramSearch, helpers.MassSearchReplaceAnyInputTagVisitor._paramSearch, helpers.MassSearchParamVisitor._paramSearch, and ConfigBuilder.ConfigBuilder.MassSearchReplaceProcessNameVisitor._paramSearch.

249  def enter(self,visitee):
250  if (hasattr(visitee,self._paramName)):
251  if getattr(visitee,self._paramName) == self._paramSearch:
self._modules.append(visitee)
def helpers.MassSearchParamVisitor.leave (   self,
  visitee 
)

Definition at line 252 of file helpers.py.

253  def leave(self,visitee):
pass
def helpers.MassSearchParamVisitor.modules (   self)

Definition at line 254 of file helpers.py.

255  def modules(self):
256  return self._modules
257 

Member Data Documentation

helpers.MassSearchParamVisitor._modules
private

Definition at line 247 of file helpers.py.

Referenced by helpers.MassSearchParamVisitor.modules().

helpers.MassSearchParamVisitor._paramName
private

Definition at line 245 of file helpers.py.

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

helpers.MassSearchParamVisitor._paramSearch
private

Definition at line 246 of file helpers.py.

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