In trunk now:

>>> a=FORM(INPUT(_name='test',requires=IS_NOT_EMPTY()))
>>> a.accepts(request.vars,formname=None)
False
>>> print a
<form action="" enctype="multipart/form-data" method="post"><input
name="test" value="" /><div class="error" id="test__error">cannot be
empty!</div></form>

Massimo


On Jan 3, 5:30 pm, mdipierro <[email protected]> wrote:
> Good point. Will do it. Thanks Vince.
>
> Massimo
>
> On Jan 3, 3:43 am, vince <[email protected]> wrote:
>
> > when sqlform validate with error it will generate the error message
> > like this
> > <div class="error">too long!</div>
>
> > i think it should be
> > <div class="error" id="table.field__error">too long!</div>
>
> > so we can position it as well as the table.field__label and
> > table.field
>
> > -vince
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to