in pylons, how do i use a variable that is considered global in a class, like using self, seems in pylons using self wont work.
suppose i have in controller :
a.py :
class AController(BaseController):
def TestA(self):
text = request.params.get('text', None)
self.text = text
redirect(url(controller = 'A', action = 'TestB'))
def TestB(self):
render '%s' % self.text
got an error, 'AController' object has no attribute 'text', so how do i display 'text' or 'self.text' based on TestA using TestB in pylons