On Friday April 19, 2002 06:36 pm, Chuck Esterbrook wrote:
> I took a stab at trimming the length of values in the exception report,
> but my first attempt failed. The problem is that a value could be a
> long HTML string with <table><tr><td> tags (for say, a dictionary).
> Cutting out a peice of the middle or end of that results in fragmented
> HTML and screws up the page.
>
> Geoff, you're most in need of this. Some questions:
>
> - Does adding some hideValuesForFields for your app alleviate your need
> for "trimming" long values?

I could hide the fields that have large values, but it would be preferable to 
have this happen automatically so it's one less thing I have to remember to 
do.

> - If not, would it be sufficient to trim just the values inside
> dictionaries, but not the overall dictionaries themselves?

Yes, I'm pretty sure that would work.  I have relatively few session 
variables, but the values can be very large.

> - If not, did you have an algorithm in mind?

How about this: wherever we're calling "repr" when we're generating the 
exception report, we should check the length of the resulting string and trim 
it if it's too long.  I think we should add a config var to control that 
maximum length.

>From glancing at the code, it looks like there are two place that need to do 
the trimming: WebKit.ExceptionHandler.repr() and WebUtils.Funcs.htmlForDict().

- Geoff

_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to