[Zope] Re: REQUEST.form variables order
Tres Seaver
tseaver at palladion.com
Fri Apr 21 07:36:53 EDT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Gaute Amundsen wrote:
> On Thursday 20 April 2006 20:11, Dieter Maurer wrote:
>
>>Gaute Amundsen wrote at 2006-4-19 19:03 +0200:
>>
>>>I want to retrieve the form fields in the order that they where submitted
>>>in the http POST. I know this has been brought up before, and that the
>>>answer is "You cant."
>>
>>You might be able to do it.
>>
>> Try "REQUEST['BODY']". For a "POST" request, it should
>> contain the entity content.
>>
>> Of course, you would have to decode it yourself ;-)
>
>
> What? It can't be that simple!
> I thougt I had been poking all around the corners of REQUEST, looking for just
> somthing like that.
>
> Hm.. no.
>
> Error Type: KeyError
> Error Value: 'BODY'
>
> Are you sure about this?
> In that case, any idea why it is missing?
>
> We are on Zope 2.7.5-1.fc3, python 2.3.4, behind Apache/2.0.52
REQUEST.stdin is the actual stream (either a tempfile or a StringIO).
You will likely need to rewind it before you can use it.
Tres.
- --
===================================================================
Tres Seaver +1 202-558-7113 tseaver at palladion.com
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFESMPV+gerLs4ltQ4RApq9AJ9viWbzERyQJyVzRnL3PXjvtYT5EgCgwm1R
3lLPwcN8DiHBocoIPQDJUBQ=
=hZ5X
-----END PGP SIGNATURE-----
More information about the Zope
mailing list