def notfoundsearch():
f= web.ctx.fullpath
f=f.strip()
f=f.replace('/','')
try:
u = mc.mcquery(db,"select * from users where username='%s'"%(f),
'keypopuser'+f)
if u:
return web.found('/p/'+f)
except:pass
f=f.replace('_',' ')
f=web.urlquote(f)
return web.found('/s?src=notfound&q='+f)
app = web.application(urls, globals())
app.notfound = notfoundsearch
this used to work now it is not working!
how does notfound work
On Tue, Nov 18, 2008 at 12:07 AM, Anand <[EMAIL PROTECTED]> wrote:
>
>
>
> > can you update the cookbook to show how to do custom notfound ?
> http://webpy.org/cookbook/custom_notfound
>
> Done!
>
>
> >
> this
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---