Hi all
It's may be very easy but I don't know how can I pass argument/variable
from controller to subcontroler?
Some example code:
------------------
from example.controllers.one import OneController
from example.controllers.two import TwoController
test = u'Do some test!'
class TestController(BaseController):
one = OneController()
two = TwoController()
@expose('example.templates.index')
def index(self):
flash(test)
return dict(page='index')
--------------------------
I want to pass this variable/argument "test" to subcotnrollers.
When I do in subcontroller flash(test) it should flash: 'Do some test!'
like it work in main controller.
How can I do this?
please help
regards
--
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/turbogears/-/p6n3LTvQLcsJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en.