Public Member Functions | |
def | __init__ |
def | enter |
def | leave |
def | modules |
Private Attributes | |
_modules | |
_paramName | |
_paramSearch |
Visitor that travels within a cms.Sequence, looks for a parameter and returns a list of modules that have it
Definition at line 67 of file helpers.py.
def helpers::MassSearchParamVisitor::__init__ | ( | self, | ||
paramName, | ||||
paramSearch | ||||
) |
Definition at line 69 of file helpers.py.
00069 : 00070 self._paramName = paramName 00071 self._paramSearch = paramSearch 00072 self._modules = [] def enter(self,visitee):
def helpers::MassSearchParamVisitor::enter | ( | self, | ||
visitee | ||||
) |
Definition at line 73 of file helpers.py.
00073 : 00074 if (hasattr(visitee,self._paramName)): 00075 if getattr(visitee,self._paramName) == self._paramSearch: 00076 self._modules.append(visitee) def leave(self,visitee):
def helpers::MassSearchParamVisitor::leave | ( | self, | ||
visitee | ||||
) |
def helpers::MassSearchParamVisitor::modules | ( | self | ) |
Definition at line 79 of file helpers.py.
00079 : 00080 return self._modules 00081 def massSearchReplaceParam(sequence,paramName,paramOldValue,paramValue):
Definition at line 72 of file helpers.py.
Definition at line 70 of file helpers.py.
Definition at line 71 of file helpers.py.