[web2py] Re: How to use HTML escapes in Field titles

2017-07-26 Thread Joe Barnhart
Thank you for your help, Anthony. -- Joe -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Goog

[web2py] Re: How to use HTML escapes in Field titles

2017-07-26 Thread Anthony
> > As far as my table comment, I meant that when I used the SQL table and its > Fields to create an SQLTABLE, the labels "just worked" and produced a > column header with the desired symbol instead of printing "≤" in the > column heading. So SQLTABLE behavior differed from SQLFORM in this man

[web2py] Re: How to use HTML escapes in Field titles

2017-07-26 Thread Joe Barnhart
Actually I've thought a little more about it and I think this construction is better. elapsed_time_field("lcm_gt",label=XML(T("LCM %s",(">",, elapsed_time_field("lcm_le",label=XML(T("LCM %s",("≤",, elapsed_time_field("scm_gt",label=XML(T("SCM %s",(">",, elapsed_time_field("scm_le",lab

[web2py] Re: How to use HTML escapes in Field titles

2017-07-26 Thread Joe Barnhart
Hi Anthony -- The problem is that I don't want "LT" but rather "LE", i.e. "less than or equal to." As far as my table comment, I meant that when I used the SQL table and its Fields to create an SQLTABLE, the labels "just worked" and produced a column header with the desired symbol instead of p

[web2py] Re: How to use HTML escapes in Field titles

2017-07-26 Thread Anthony
On Wednesday, July 26, 2017 at 7:43:14 PM UTC-4, Joe Barnhart wrote: > > It's even worse than I imagined. > > Leaving off the T() operation, I find that my field labeled "LCM >" is > actually sanitized at some point into: > > id="event_join_lcm_gt__label">LCM >: > > Yes, something in the process

[web2py] Re: How to use HTML escapes in Field titles

2017-07-26 Thread Joe Barnhart
It's even worse than I imagined. Leaving off the T() operation, I find that my field labeled "LCM >" is actually sanitized at some point into: LCM >: Yes, something in the process has *recognized* the character ">" and changed it to ">" But the field "LCM ≤" was sanitized into: LCM ≤:

[web2py] Re: How to use HTML escapes in Field titles

2017-07-24 Thread Joe Barnhart
Ugh. Replace the word "title" with "label" everywhere. Global search and replace. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this mes