Re: trouble with yesno to generate images

2009-01-27 Thread Steve Holden
Margie wrote: > Thanks very much, autoescape did the trick, here is the result for > anyone interested: > > {% autoescape off %} > {{ task.done|yesno:" \" alt=\"False\" />, \"False\" />" }} > {% endautoescape %} > Neat, but I think you need to correct your first alt

Re: trouble with yesno to generate images

2009-01-27 Thread Almost George
On Jan 26, 4:52 pm, Margie wrote: > Thanks very much, autoescape did the trick, here is the result for > anyone interested: > >         {% autoescape off %} >         {{ task.done|yesno:" \" alt=\"False\" />, \"False\" />" }} >         {% endautoescape %} > > Margie

Re: trouble with yesno to generate images

2009-01-26 Thread Malcolm Tredinnick
On Mon, 2009-01-26 at 14:52 -0800, Margie wrote: > Thanks very much, autoescape did the trick, here is the result for > anyone interested: > > {% autoescape off %} > {{ task.done|yesno:" \" alt=\"False\" />, \"False\" />" }} > {% endautoescape %} Hmmm ... then that's

Re: trouble with yesno to generate images

2009-01-26 Thread Margie
Thanks very much, autoescape did the trick, here is the result for anyone interested: {% autoescape off %} {{ task.done|yesno:"," }} {% endautoescape %} Margie --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: trouble with yesno to generate images

2009-01-26 Thread Almost George
On Jan 26, 3:58 pm, Almost George wrote: > On Jan 26, 3:39 pm, Margie wrote: > > > > > Hi, > > > I am trying to generate a symbol for true and false in my table, but > > am having problems with the escaping of quotes and also with > >

Re: trouble with yesno to generate images

2009-01-26 Thread Almost George
On Jan 26, 3:39 pm, Margie wrote: > Hi, > > I am trying to generate a symbol for true and false in my table, but > am having problems with the escaping of quotes and also with > generating the < > tags.  If I use the code below: >        {{ task.done|yesno:" \" />,"

Re: trouble with yesno to generate images

2009-01-26 Thread Malinka Rellikwodahs
This is just a quick guess without really knowing anything about the yesno filter, but I would try single quotes inside the html in your yesno filter eg On Mon, Jan 26, 2009 at 16:39, Margie wrote: > > Hi, > > I am trying to generate a symbol for true and false in my

trouble with yesno to generate images

2009-01-26 Thread Margie
Hi, I am trying to generate a symbol for true and false in my table, but am having problems with the escaping of quotes and also with generating the < > tags. If I use the code below: {{ task.done|yesno:"," }} it ends up generating this: < ends up being <, > ends up being > and