2010/5/2 bluszcz <[email protected]>

>
> For example, on the webpage http://webpy.org/form there is a form
> which has
> "        form.regexp('\d+', 'Must be a digit') " dalidator - how can I
> get this message from form object after form validatation?
>
>
you can reach additional validators message after validtation like this:

def POST(self):
        form = myform()
        if not form.validates():
            for k in form.inputs:
                print "id = ", k.id, "validation msg = ", k.note


if validation pass than k.note is None otherwise the validator message.

im not sure this is what you want, if not pls make it clear

-- 
Aydın ŞEN

         Ege Üniversitesi
Uluslararası Bilgisayar Enstitüsü

-- 
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