2009/6/21 Carlos Ríos V. <[email protected]>:
>
> Hello web.py programmers,
>
> I have been writing a simple form, but in execution, when it looks for
> the form validates() function, I got an exception:
>
> <type 'exceptions.AttributeError'> at /add
> 'str' object has no attribute 'valid'
> Python  /usr/local/lib/python2.5/site-packages/web/form.py in
> validate, line 120
> Web     POST http://localhost:8080/add
>
> I have no idea why I got this if I am doing exactly what I found in
> the tutorials.
>
> I upload the source code if you want see my code.
> code:
> http://pastie.org/519469
>
> template:
> http://pastie.org/519470
>
> Regards!
>
> ps: Sorry if my English is not so good.

well, I found my error, so I will answer my onw question,

In the first pastebin at line 19 I added a textbox without the label
"description". For that reason I got that exception.

Well, that's it!

Regards

ps: Sorry if my English is not so good

-- 
http://crosvera.blogspot.com

Carlos Ríos V.
Estudiante de Ing. (E) en Computación e Informática.
Universidad del Bío-Bío
VIII Región, Chile

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to