Google Groups Home
Help | Sign in
Message from discussion Follow-up on ticket 800 (Request ability to override default error template)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Nicolas Grilly  
View profile
 More options Apr 21, 7:50 pm
From: "Nicolas Grilly" <ngri...@gmail.com>
Date: Tue, 22 Apr 2008 01:50:40 +0200
Local: Mon, Apr 21 2008 7:50 pm
Subject: Re: [cherrypy-devel] Re: Follow-up on ticket 800 (Request ability to override default error template)

Robert Brewer <fuman...@aminus.org> wrote:
>  Thanks for the thought and effort on this--it'd be really nice to
>  resolve for 3.1 final. I'd like to pursue the idea of requiring an
>  error_page callable to return HTML (but possibly do other things)...have
>  a look at the branch I made for ticket 800 and see if you can modify it
>  to do what you described.

OK. I'll look at the branch and propose a patch ASAP.

>  I'm still pretty adamantly opposed to using 0 as a magic number to mean
>  'default'. IMO that sort of information-encoding is a holdover from C
>  and similar languages where 1) your identifiers need to fit in a CPU
>  register and 2) static typing promotes shoving out-of-band information
>  into a struct it was never designed for. In other words, I'd rather see
>  a new "error_page_default" attribute, or even error_page['default'],
>  than error_page[0].

I completely agree with that: I'm going to use error_page['default'].

Thanks,

Nicolas


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google