def POST(self): form = qform() if not form.validates(): print config.base.layout(view.ask(form), person) else: id = threads.new(question=form.d.question, authorid=person.id, roomid=form.d.rooms, summary=form.d.summary) web.seeother('/thread/%i' % id)
def POST(self): input = web.input() threads.new(roomid = input.roomid, question = input.question)