Public Member Functions | |
def | __init__ |
def | enter |
def | leave |
Private Attributes | |
_paramName | |
_paramSearch | |
_paramValue |
Visitor that travels within a cms.Sequence, looks for a parameter and replace its value
Definition at line 6 of file helpers.py.
def helpers::MassSearchReplaceParamVisitor::__init__ | ( | self, | ||
paramName, | ||||
paramSearch, | ||||
paramValue | ||||
) |
Definition at line 8 of file helpers.py.
00008 : 00009 self._paramName = paramName 00010 self._paramValue = paramValue 00011 self._paramSearch = paramSearch def enter(self,visitee):
def helpers::MassSearchReplaceParamVisitor::enter | ( | self, | ||
visitee | ||||
) |
Definition at line 12 of file helpers.py.
00012 : 00013 if (hasattr(visitee,self._paramName)): 00014 if getattr(visitee,self._paramName) == self._paramSearch: 00015 print "Replaced %s.%s: %s => %s" % (visitee,self._paramName,getattr(visitee,self._paramName),self._paramValue) 00016 setattr(visitee,self._paramName,self._paramValue) def leave(self,visitee):
def helpers::MassSearchReplaceParamVisitor::leave | ( | self, | ||
visitee | ||||
) |
Definition at line 17 of file helpers.py.
00017 : 00018 pass 00019 class MassSearchReplaceAnyInputTagVisitor(object):
Definition at line 9 of file helpers.py.
Definition at line 11 of file helpers.py.
Definition at line 10 of file helpers.py.