Re: "for key, value" in 0.96

2008-03-04 Thread Jose Jiménez
Thank you very much everybody. I suspect that was a trunk's functionality. I solved it using a list of tuples. Thanks again. On 26 feb, 00:02, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Mon, 2008-02-25 at 10:21 -0800, Jose Jiménez wrote: > > Hello everybody, > > > i'm developing an appl

Re: "for key, value" in 0.96

2008-02-25 Thread Malcolm Tredinnick
On Mon, 2008-02-25 at 10:21 -0800, Jose Jiménez wrote: > Hello everybody, > > i'm developing an application with the lates stable release of django > (0.96). > In the trunk version, i can do "for key, value in variable", but in > the 0.96 version i take an error: > > 'for' statements with five

Re: "for key, value" in 0.96

2008-02-25 Thread Russell Keith-Magee
On Tue, Feb 26, 2008 at 3:21 AM, Jose Jiménez <[EMAIL PROTECTED]> wrote: > > How can i access to the key and the value of all elements of a > dictionary? If i do: for a in variable, a is the key, but i can't > access its value. The {% for key,value in list %} syntax was added in the trunk. In

Re: "for key, value" in 0.96

2008-02-25 Thread Tom Badran
Do "for k,v in dict.iteritems()" Tom On Mon, Feb 25, 2008 at 6:21 PM, Jose Jiménez <[EMAIL PROTECTED]> wrote: > > Hello everybody, > > i'm developing an application with the lates stable release of django > (0.96). > In the trunk version, i can do "for key, value in variable", but in > the 0.96

"for key, value" in 0.96

2008-02-25 Thread Jose Jiménez
Hello everybody, i'm developing an application with the lates stable release of django (0.96). In the trunk version, i can do "for key, value in variable", but in the 0.96 version i take an error: 'for' statements with five words should end in 'reversed': for key, value in variable How can i ac