CMS 3D CMS Logo

Public Member Functions | Private Attributes

helpers::MassSearchParamVisitor Class Reference

List of all members.

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


Constructor & Destructor Documentation

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

Definition at line 186 of file helpers.py.

00187                                             :
00188         self._paramName   = paramName
00189         self._paramSearch = paramSearch
        self._modules = []

Member Function Documentation

def helpers::MassSearchParamVisitor::enter (   self,
  visitee 
)

Definition at line 190 of file helpers.py.

00191                            :
00192         if (hasattr(visitee,self._paramName)):
00193             if getattr(visitee,self._paramName) == self._paramSearch:
                self._modules.append(visitee)
def helpers::MassSearchParamVisitor::leave (   self,
  visitee 
)

Definition at line 194 of file helpers.py.

00195                            :
        pass
def helpers::MassSearchParamVisitor::modules (   self)

Definition at line 196 of file helpers.py.

00197                      :
00198         return self._modules
    

Member Data Documentation

Definition at line 186 of file helpers.py.

Definition at line 186 of file helpers.py.

Definition at line 186 of file helpers.py.