[WWdevel] Re: [WWcvs] webwork-modperl: Commented out escapeHTML() of warning messages since it

Michael Gage gage at math.rochester.edu
Sat Jan 15 19:03:38 EST 2005


I get the same phenomenon for warnings within problems themselves.

Commenting out line 797  in pg/lib/WeBWorK/PG/Translator.pm   restores 
the warning messages from problems.

We'll need to look at the whole warning mechanism again.  Maybe we can 
devise some unit tests
to make sure existing warning functions don't break when we add others.

Can't do that this second though.

Take care,

Mike


On Jan 15, 2005, at 6:20 PM, John Jones wrote:

> Michael Gage wrote:
>
>> I'm not sure how to resolve this.  We use "warn" routinely inside 
>> problems to
>> help write and debug problems.  pretty_print_rh formats complicated
>> structures in tables.  This is very useful and I'd rather not loose 
>> it.
>>
>> Hard coded warn messages can have < > manually replaced by < and 
>> > but
>> there is a problem if the warn message has a variable.
>
> Being able to use warn statements from the pg side is useful, but all 
> times I had done it recently didn't work.  I higher level webwork 
> error is generated and you don't get the output of the warn.  Does it 
> currently work for you?
>
> John
>
>
>
> -------------------------------------------------------
> The SF.Net email is sponsored by: Beat the post-holiday blues
> Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
> It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
> _______________________________________________
> OpenWeBWorK-Devel mailing list
> OpenWeBWorK-Devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/openwebwork-devel
>





More information about the webwork-devel mailing list