Re: double for in the template

2010-08-26 Thread Tim Chase
On 08/26/10 11:10, Andrea Imparato wrote: How can i scan the zipped list in the template page? If I do {% for f in zip %} {{ f }} {% endfor %} How can I access the second item in the index? I think since version 1.0, you can just use standard tuple-unpacking syntax as detailed in the help[1]

Re: double for in the template

2010-08-26 Thread Tom Evans
On Thu, Aug 26, 2010 at 4:17 PM, Andrea Imparato wrote: > > I have 2 lists and I have to scan them "concurrently" with the same > indexes at the same time. Something like: > > {% for lists %} > first item from the first list > first item from the second list > {% endfor %} > > I thought about crea

Re: double for in the template

2010-08-26 Thread Tim Chase
On 08/26/10 10:17, Andrea Imparato wrote: I have 2 lists and I have to scan them "concurrently" with the same indexes at the same time. Something like: {% for lists %} first item from the first list first item from the second list {% endfor %} I thought about creating something like a map with

Re: double for in the template

2010-08-26 Thread Andrea Imparato
I have 2 lists and I have to scan them "concurrently" with the same indexes at the same time. Something like: {% for lists %} first item from the first list first item from the second list {% endfor %} I thought about creating something like a map with 2 values in each index but I don't know how

Re: double for in the template

2010-08-25 Thread bruno desthuilliers
On 25 août, 18:30, Andrea Imparato wrote: > Hello all, > > is possible to do in templates double for like in C: > > for(int i = 0, int j = 0; i<0 && j<0;i++,j++) ? What's your use case exactly ? -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: double for in the template

2010-08-25 Thread Steve Holden
On 8/25/2010 12:30 PM, Andrea Imparato wrote: > Hello all, > > is possible to do in templates double for like in C: > > for(int i = 0, int j = 0; i<0 && j<0;i++,j++) ? > No. > > I can't find nothing interesting in the docs :( > Try to avoid thinking of the template language as a programming la

double for in the template

2010-08-25 Thread Andrea Imparato
Hello all, is possible to do in templates double for like in C: for(int i = 0, int j = 0; i<0 && j<0;i++,j++) ? I can't find nothing interesting in the docs :( -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email