Re: cycle in nested loops

2013-02-02 Thread Shai Berger
Hi, On Friday 01 February 2013, Aymeric Augustin wrote: > Hi Wim, > > Le 21 janv. 2013 à 18:01, Wim Feijen a écrit : > > Actually, the current behaviour is not to reset between loops. Is that > > intentional? > > Yes, this behavior is intentional. See Malcolm's comment (#4)

Re: cycle in nested loops

2013-01-31 Thread Aymeric Augustin
Hi Wim, Le 21 janv. 2013 à 18:01, Wim Feijen a écrit : > Actually, the current behaviour is not to reset between loops. Is that > intentional? Yes, this behavior is intentional. See Malcolm's comment (#4) on the ticket. > A patch to ticket 5908 adds a reset_cycle tag,

cycle in nested loops

2013-01-21 Thread Wim Feijen
Hi, Quoting ticket 5908 : "Under the following example, I would expect the cycle tag's internal counter to be reset after leaving the inner loop. That way it'd be 'nesting safe' :-) {% for group in grouped %} {% for item in group.list %} ...