Re: handling 404
Wari Wahab <[email protected]> Tue, 15 Jun 2010 17:05:42 +0800
| Newsgroups | gmane.comp.web.pyblosxom.devel |
|---|---|
| Message-ID | <[email protected]> |
I'm sure 404 handlers would some in useful, one such handler I can think of is a search based on the URL you entered, and return a list of results, or else a paranoid android 404 quote generator. I'm thinking the callbacks would look like cb_errorXXX, where XXX would be the expected error. The callback caller should be a bit more dynamic then as no one would want to list out all possible callbacks on the main code. Also, plugins can list out what kind of errors it can handle this way. BTW does this mean pybloxsom itself can be a general error handler, with the main code takes in return code 200 as its main job. Also, can this be overridden as well for some special use case? On 15-Jun-2010, at 4:51 PM, Sebastian Spaeth wrote: > I don't know use cases for anything else but 404 at > the moment, but I am sure that could come in handy. ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo