Re: Two Dimentional Form Data Arrays

2009-02-22 Thread Malcolm Tredinnick
On Sun, 2009-02-22 at 18:54 -0800, ajt111 wrote: > In my above example > It returns a dict with the key as "search[{{result.NAME}}] and the > value as "{{result.CODE}}". This does not allow me to refer the the > data that I want as "search". Does "it" here mean the template that is rendered? Or

Re: Two Dimentional Form Data Arrays

2009-02-22 Thread ajt111
In my above example It returns a dict with the key as "search[{{result.NAME}}] and the value as "{{result.CODE}}". This does not allow me to refer the the data that I want as "search". What I want to end with is a form element that when submitted, will produce a two dimentional dictionary object

Re: Two Dimentional Form Data Arrays

2009-02-22 Thread Malcolm Tredinnick
On Sat, 2009-02-21 at 21:58 -0800, ajt111 wrote: > I want to create a multi-dimentional arry in a form element and > convert that to a list of dicts. > > My form element looks like this: > > If this as part of a loop? What is result? Does it have CODE and NAME attributes or methods or keys? >

Two Dimentional Form Data Arrays

2009-02-21 Thread ajt111
I want to create a multi-dimentional arry in a form element and convert that to a list of dicts. My form element looks like this: What I was hoping to have was an arry named search with a key of result.NAME and a value of result.CODE that looks like this: search [ NAME1=>CODE1 NAME2