durusmail: quixote-users: PublishError exception handling overhaul
PublishError exception handling overhaul
2002-05-14
2002-05-14
2002-05-14
2002-05-14
PublishError exception handling overhaul
Greg Ward
2002-05-14
On 14 May 2002, Neil Schemenauer said:
> Yes, I agree that using __str__ is ugly.  The released version of
> Quixote uses format().  I'm going to change it back to that.  OTOH,
> maybe render() is better in order to be consistent with widgets.  Any
> preference?

If it generates a web page, render().  If it generates a string,
format().

(BTW, I'm +0.9 on your exception-handling proposal -- the extra 0.1 is
lacking only because I haven't thought it carefully through.)

        Greg


reply