Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
 def POST(self):
     input = web.input()
     threads.new(roomid = input.roomid, question = input.question)