def submit(self, room): if not c.obstacle.validate(request.params): return render('fail.mako') redirect(url(controller='room', room=c.obstacle.direct(request.params), action='index'))
def index(self, room): return render(c.obstacle.template+'.mako')
def fail(self, room): return render('fail.mako')
def index(self): c.main = scenario return render('/scenario.mako')