PAGE CherryPy/TurboGears import cherrypy from turbogears import expose from turbogears import controllers class MyRoot: @cherrypy.expose() class Root(controllers.RootController): @expose(template="foo"): def index(self, who="Svet"): return "Ahoj %s!" % who def index(self, who="Svet"): return dict(who=who)
PREVIOUS NEXT