On 8/12/07, polymath <[EMAIL PROTECTED]> wrote:
>
> Is there a good way I can make the program do what I want it to?
>
form.Validator("Already in table",
lambda x: len(web.query("SELECT name FROM int_words WHERE name='%s'" %
x)) == 0)
)
I use this validator and it works.
Matteo
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---