You don't need to change form.notnull
Define your own validator and use it in your forms
from web import form
my_notnull = form.Validator("Verplicht", bool)
my_form = form.Form( form.Textarea("message", my_notnull), )
On Aug 3, 11:21 am, digistam <[email protected]> wrote:
> Thanks for your help. Unfortunately, form.notnull =
> form.Validator("Verplicht", bool) leads to an error:
>
> SyntaxError: keyword can't be an expression
>
> any idea ?
>
> Mark
>
> On Aug 3, 8:07 am, Aydýn ÞEN <[email protected]> wrote:
>
>
>
>
>
>
>
> > try this:
>
> > form.notnull = form.Validator("Verplicht", bool)
>
> > 2011/8/2 digistam <[email protected]>
>
> > > I use form validation and I see the phrase "Required" next to an empty
> > > form field when it is supposed to be filled with some value. As I am
> > > developing a web.py tool in the Dutch language, I really like to have
> > > the Dutch word for "Required" (which is "Verplicht"). Is it possible
> > > to alter the validation texts ?
>
> > > --
> > > 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.
>
> > --
> > Aydýn Þen
--
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.