I'm trying to do some checking on data input.   Looking at the code in
gluon I see there's a raise function that should return a 404 or 400
error code.   I'm trying a fairly simple test:

                if ( prefix < 200 ):
                    print prefix  # comment for production
                    raise HTTP(404, str(prefix) + "is Not a Valid
Prefix")

I get the print statement on the terminal where I'm running web2py so
I know it's branching here but I don't see an error message from the
app as I would expect.

I have

from html import *
from http import *

at the top of my function but it doesn't seem to make a difference if
they're there or not.

I've stopped and restarted web2py.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to