On Sat, Oct 10, 2009 at 8:00 PM, The Dod <[email protected]> wrote: > >> Does <http://webpy.org/cookbook/custom_notfound> answer your question, >> by any chance? > > Not really. I use that as well, but what I want is something like > urls=('/page/(.*)',page) > class page: > def GET(self,name): > the_page=get_page_from_db(name) > if the_page: > return render.mytemplate(the_page) > else: > # do like what happens when you try to access [e.g.] '/ > this-is-not-in-url-mapper'
raise web.notfound() --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
