Thanks to all....
Here is my final barebones script...,so...hope this helps somebody....

import web

urls=('/','index')

def notfound():
    return web.notfound("Sorry, the page you were looking for was not
found.")

class index:
    def GET(self):
        web.header("Content-Type","text/html; charset=utf-8")
        return "Hello WSGI"

app = web.application(urls, globals())
app.notfound = notfound
application = app.wsgifunc()



'

On Thu, May 21, 2009 at 6:14 PM, Anand Chitipothu <[email protected]>wrote:

>
> > application = web.application(urls, globals()).wsgifunc()
> > application.notfound = notfound
> >
> > I get "not found" rather then my custom message....
>
> You trying to add notfound attribute to wsgi function. Try this instead:
>
> app = web.application(urls, globals())
> app.notfound = notfound
>
> application = app.wsgifunc()
>
> Anand
>
> >
>


-- 
David Montgomery
Chief Technical Officer
Ad Aloha
http://www.AdAloha.com
Honolulu, Hawaii 96815
808-351-5046
Calandar
http://users.adaloha.com/davidmontgomery_calandar

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