Check out the ErrorController (controllers/error.py). Here's more information on error handling in Pylons: http://wiki.pylonshq.com/display/pylonsdocs/Error+Documents
Cheers, Tom Longson (nym) --------------------------------- Tackle Human Dilemmas. http://stopthespin.com/ On Mon, Mar 23, 2009 at 5:49 PM, edgarsmolow <edgarsmo...@gmail.com> wrote: > > My question is how to implement a catch-all for "bogus" URLs? > > Suppose the user manually enters a URL that does not have a > corresponding action. Like this: > > http://mydomain.com/mycontroller/myaction > > Suppose "myaction" as an action (method) in controller "mycontroller" > has not been implemented (i.e., does not exist). This causes an > error: > > NotImplementedError: Action u'myaction' is not implemented > > How do I create a catch-all in Pylons so that unimplemented actions > (and controllers, too) don't cause the app to go belly-up. > > Thanks. > Edgar > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---