Thank you Ben! :)

That was what I'm doing actually,
but the error was elswhere, and
a stupid one (a python one)

I'm using the same technique now,
but with web.redirect instead.

So it's:

if url:
   do_check(url)
else:
  web.redirect('../')

without giving a single hint about the error,
but well the index page is static ;-)


Karim
--
http://akoncept.com
Innovate Humanum Est


On 8 nov, 23:48, "Ben Hoyt" <[EMAIL PROTECTED]> wrote:
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to