By the way, I'm running Pylons 0.9.7. Edgar
On Mar 24, 1:45 pm, edgarsmolow <[email protected]> wrote: > Thanks, Tom. > But that document is out-of-date. After reading that document, I > still don't understand the process or have a good example to follow. > Besides, ErrorController might not be what I'm looking for. What > happens when a URL identifies a specific controller and action, but > the action has not been implemented? For > instance,http://domain.com/products/view > would map to the view action in the products controller. But, if the > view action (method) does not exist, Pylons throws and exception. How > do I handle that situation? > > Thanks. > Edgar > > On Mar 23, 8:54 pm, "Tom Longson (nym)" <[email protected]> wrote: > > > 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 <[email protected]> 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
