Hi Leandro,

Have you figured out how to use wtforms with web.py?
Take a look at this project: 
https://github.com/faruken/flask-web.py-jvm/blob/master/webpy/app/controllers.py

Sumary:

  def GET(self):
    web.header('Content-Type', 'text/html; charset=UTF-8')
    form = LoginForm()
    return render.index(form)

  def POST(self):
    web.header('Content-Type', 'text/html; charset=UTF-8')
    form = LoginForm(None, web.input())
    if form.validate():
      flag = self.do_login(form.username.data, form.password.data)
      if not flag:
        return render.index(form)
      raise web.seeother('/done?true')
    return render.index(form)




On Tuesday, 30 October 2012 16:48:56 UTC-2, Leandro Severino wrote:
>
> any idea ?
>
> Leandro.
>
> Em quinta-feira, 25 de outubro de 2012 14h07min01s UTC-2, Leandro Severino 
> escreveu:
>>
>> Hi,
>>
>>    How to integrate web.py with WTForms ? are there a sample code ?
>>    
>>   Leandro.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/webpy.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to