Re: Parsing PHP-style GET parameters for lists and dicts in Django

2016-02-26 Thread James Schneider
On Fri, Feb 26, 2016 at 2:49 AM, Remco Gerlich wrote: > Hi James, > > I agree with the general dirtyness of PHP and I have used Django > exclusively for years. > > Ah, the way you posed the question I took you to be a recent convert. Sorry about that. ;-) The type of parameter I mean is where,

Re: Parsing PHP-style GET parameters for lists and dicts in Django

2016-02-26 Thread Remco Gerlich
Hi James, I agree with the general dirtyness of PHP and I have used Django exclusively for years. The type of parameter I mean is where, say a list of two elements [1,2] is sent as http://example.com/?list[0]=1&list[1]=2 So instead of two parameters with the same name, this has two parameters w

Re: Parsing PHP-style GET parameters for lists and dicts in Django

2016-02-26 Thread James Schneider
On Feb 26, 2016 1:21 AM, "Remco Gerlich" wrote: > > I need to work with DataTables, a jQuery-plugin for sortable HTML tables. > > It sends Ajax GET requests with parameters like the following (but urlencoded, of course): > > columns[0][data]=0 > columns[0][name]= > columns[0][searchable]=true > co

Parsing PHP-style GET parameters for lists and dicts in Django

2016-02-26 Thread Remco Gerlich
I need to work with DataTables, a jQuery-plugin for sortable HTML tables. It sends Ajax GET requests with parameters like the following (but urlencoded, of course): columns[0][data]=0 columns[0][name]= columns[0][searchable]=true columns[0][orderable]=true columns[0][search][value]= columns[0][se