Hi Karim,
> @dougalg: yes, I've seen this error, I've tried some htaccess "hack" for
> it but it didn't worked, I tried inside the check class nothing too... I
> guess I'm messing something very stupid. It always happens to me
>
I guess you're referring to the "internal server error" when you click
"Check it" with no url in the box?
I'm not sure exactly what the problem is without seeing your code, but can't
you just redirect back to the home page if input.url is blank? (You could
show an error message if you wanted.) Something like this:
class check:
def GET(self, url):
do_check(url)
def POST(self):
url = web.input(url='').url
if url:
do_check(url)
else:
web.seeother('/?error=no-url')
--
Ben Hoyt, http://benhoyt.com/
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---