On 1/26/06, tonemcd <[EMAIL PROTECTED]> wrote: > Essentially, I used to have statements like this <dtml-var > some_variable_from_my_form> sprinkled around my pages to check that > form-based variables where being passed through correctly. Zope put > into a namespace called 'form', but also made them available in the > main namespace. The request namespace was populated with all POST and > GET variables. Django presents POST as POST:<MultiValueDict: {}>, so I > don't know what variables are in the POST namespace.
Hi Tone, request.POST is always an instance of MultiValueDict, which is a special type of dictionary that is able to handle multiple values for a given key. That's where "MultiValueDict" comes from. See http://www.djangoproject.com/documentation/request_response/#querydict-objects for more. (Technically request.POST is a QueryDict, which is a subclass of MultiValueDict -- that's why the docs say QueryDict, not MultiValueDict.) If your request.POST is displayed as <MultiValueDict: {}>, that means request.POST is empty. If request.POST had something in it, it'd look like this: <MultiValueDict: {'senderemail': ['test@test.com'], 'message': ['foo']}> Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org