A slight spinoff of this question... suppose that I wanted to call
another function within the index def? If I just borrow the code from
above... is it possible to call a function kung (or foo, doesn't
matter), from the index function (and pass **kw along with it)?
class Controller:
@expose()
def index(self, **kw):
if kw.get('action_kung'):
# do action kung, but kung is another function
elif kw.get('action_foo'):
# do action foo, but foo is another function
@expose()
def kung(self, **kw):
...
@expose()
def foo(self, **kw):
...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
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
-~----------~----~----~----~------~----~------~--~---