3 messages in com.googlegroups.pylons-discussRe: original order of POST parameters?
FromSent OnAttachments
kevin28 Jun 2008 09:12 
Mike Orr28 Jun 2008 11:05 
Ian Bicking28 Jun 2008 11:39 
Subject:Re: original order of POST parameters?
From:Mike Orr (slug@gmail.com)
Date:06/28/2008 11:05:53 AM
List:com.googlegroups.pylons-discuss

On Sat, Jun 28, 2008 at 9:12 AM, kevin <k7l@gmail.com> wrote:

hey all,

hope you're having a good saturday.

an api requires me to reply with a hash of variables i've received via POST. the hash needs to be generated based on the original ordering of the variables as i've received them.

unfortunately the request.POST appears to be a dictionary-style object that doesn't preserve their ordering.

how can i get that information?

There are ordered dicts around, such as this one which was just proposed in Python PEP 372 and which I'm considering putting into WebHelpers. http://dev.pocoo.org/hg/sandbox/raw-file/tip/odict.py

But how you'd get WebOb to use it is another question.