views:

28

answers:

0

In turbogears 1 that was easy:

Class controller(Controller)
    @expose()
    def method1(self, **kw):
        print 'bla'
        return self.method2(**kw)

    @expose('template2')
    def method2(self, **kw):
        print 'bli'
        return dict(**kw)

when I call method1, what I got was the template2 called by method2.

but in turbogears 2, I don't have the same result. When I call method1, What I get is a blank page (no template) and the dict return by method2.