Пример #1
0
 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'))
     
Пример #2
0
 def index(self, room):
     return render(c.obstacle.template+'.mako')
Пример #3
0
 def fail(self, room):
     return render('fail.mako')
Пример #4
0
 def index(self):
     c.main = scenario
     return render('/scenario.mako')