[ZPT] preventing escaping of less-than and greater-thans in tal:replace

2006-08-14 Thread Don Morrison
When doing the following: span tal:define=r record/name; id record/task_id; mylt string:''; mygt string:''; tal:replace=string:${mylt}option label='${r}' value='${id}'${mygt}${r}${mylt}/option${mygt}/span The less-thans and greater-thans still get html escaped. How do I prevent

Re: [ZPT] preventing escaping of less-than and greater-thans in tal:replace

2006-08-14 Thread Charlie Clark
Am 14.08.2006 um 19:13 schrieb Don Morrison: When doing the following: span tal:define=r record/name; id record/task_id; mylt string:''; mygt string:''; tal:replace=string:${mylt}option label='${r}' value='${id}'${mygt}${r}${mylt}/option${mygt}/span The less-thans and

Re: [ZPT] preventing escaping of less-than and greater-thans in tal:replace

2006-08-14 Thread Don Morrison
On 8/14/06, Don Morrison [EMAIL PROTECTED] wrote: Eek string replacements are so much uglier than Python string format! How does Python string format help me? If I return a string from Python the less-thans and greater-thans still get html escaped: span tal:replace=python:'' /

Re: [ZPT] preventing escaping of less-than and greater-thans in tal:replace

2006-08-14 Thread Charlie Clark
Am 14.08.2006 um 19:27 schrieb Don Morrison: Eek string replacements are so much uglier than Python string format! Is it just me who thinks what you're doing is wrong. Charlie, I just said myself it was wrong and I'm asking for help because even if it did work it would be ugly and inelegant.

Re: [ZPT] preventing escaping of less-than and greater-thans in tal:replace

2006-08-14 Thread Don Morrison
Well, you will hit problems with your define because that will run before your repeat. Remove it and be happy. Ah thanks, that's much better. :) select name=task tabindex=2 onchange=ifnew_showdiv('new_task') option tal:repeat=record task_list tal:attributes=label