Hi,

i'm using something like this:
upload_form =
form.Form(form.File("Archive",form.notnull,form.regexp(r".*((tar\.(bz2|
gz))|tgz)$", 'Not supportedh!')))

and later in POST:
form = upload.upload_form()
        if not form.validates():
            print render.upload(form)
        else:
             something else..

and...it doesn't matter what user input in a form it always not valid!
the same code but with formTextbox instead of form.File work
correctly.

The other thing is if i use regexp: .*2
it works correctly. if i use .*z2 it doesn't
looks like one normal character at all.
strange, really strange...
any idea? :)


bart 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