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


Constructor & Destructor Documentation

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

Definition at line 191 of file helpers.py.

00192                                             :
00193         self._paramName   = paramName
00194         self._paramSearch = paramSearch
        self._modules = []

Member Function Documentation

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

Definition at line 195 of file helpers.py.

00196                            :
00197         if (hasattr(visitee,self._paramName)):
00198             if getattr(visitee,self._paramName) == self._paramSearch:
                self._modules.append(visitee)
def helpers::MassSearchParamVisitor::leave (   self,
  visitee 
)

Definition at line 199 of file helpers.py.

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

Definition at line 201 of file helpers.py.

00202                      :
00203         return self._modules
    

Member Data Documentation

Definition at line 191 of file helpers.py.

Definition at line 191 of file helpers.py.

Definition at line 191 of file helpers.py.