Error messages have the class "wrong" by default, in a <strong> tag.

If you're trying to wrap inputs with tags, your best bet is to
subclass the Form object, and override the render method.  Check out
the default one (it's only about 7 lines long), and add accordingly.

A big part of webpy's philosophy is that it doesn't try to solve all
problems, but rather minimally solve common ones so that the code base
is easily approachable and accessible.

Good luck!
Justin

On Apr 25, 7:23 pm, Jo <[email protected]> wrote:
> Hello,
>
> The form.py module is very nice but when it comes to rendering a form
> it seems to be lacking flexibility. For example how would you wrap a
> div on a form input? If an error occurs, how would you wrap a div with
> class error on the input that caused the error?
>
> Jo
--~--~---------~--~----~------------~-------~--~----~
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