[Paste] Re: weberror + show_exceptions_in_wsgi_errors = html…

Top Page
Author: Jon Nelson
Date:  
CC: Paste Users
Subject: [Paste] Re: weberror + show_exceptions_in_wsgi_errors = html in console?

On Tue, Jun 9, 2009 at 2:24 PM, Ian Bicking<ianbicking@???> wrote:
> On Tue, Jun 9, 2009 at 2:13 PM, Jon Nelson<jnelson@???> wrote:
>> When using weberror (but not paste's evalexception) and
>> show_exceptions_in_wsgi_errors, I was getting "formatted html" in the
>> console (the same or similar html that would get sent to the browser)
>> instead of a text-based traceback.
>>
>> Also, emails sent via paste's evalexception are prettier and nicely
>> colorized vs. the ones in weberror. Since weberror came from
>> evalexception, it makes me wonder how far apart they really are. Since
>> paste has a real website (and weberror doesn't), why not consider (for
>> the time being) merging weberror back into paste?
>>
>> I'm more than willing to do a bunch (all?) of the work to merge
>> weberror back into paste, and to start solving some of those problems
>> - but I'm not sure I'm up to maintain weberror itself.  Thoughts?
>
> I'm not sure... weberror doesn't have any really big features over
> paste.exceptions/evalexception, though it does have a few tweaks.  As
> well as several regressions.  And both have spaghetti code.  The
> spaghetti code is the biggest issue; and while there's some natural
> complexity to the problem, it's no where near as naturally complex as
> the code itself is.  Except for me sitting down and rewriting it, I'm
> not sure what the proper way forward is.


Let me suggest then that integrating most or all of weberrors
improvements over paste's evalexception might be a reasonable first
step, and then refactoring the code. Weberror and paste.evalexception
are so very useful, and despite the spaghetti code there is something
to be said for the pragmatic statement "People use it/them because
it/they work." I'm of the opinion that if people see that it's getting
maintained again then perhaps they'll be more willing to chip in with
fixes and improvements. However, IMO the first logical step is to
merge them, and the direction of merge that makes sense to me is to
take weberror and merge it into paste.evalexception, even if it has to
happen a step at a time.

To that end, perhaps if I can find some time, I'll look into doing
that work myself.


-- 
Jon

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Paste Users" group.
To post to this group, send email to paste-users@???
To unsubscribe from this group, send email to paste-users+unsubscribe@???
For more options, visit this group at http://groups.google.com/group/paste-users?hl=en
-~----------~----~----~----~------~----~------~--~---