diff options
| author | pjenvey <devnull@localhost> | 2006-07-24 01:47:00 +0000 |
|---|---|---|
| committer | pjenvey <devnull@localhost> | 2006-07-24 01:47:00 +0000 |
| commit | 759c5013fe8c1c8bebc31a6858bac54f9472e03a (patch) | |
| tree | 97dac026a1f573aa947f7ace94d21756a1cf74c2 /docs | |
| parent | 53509bbe29703aa6d5057db7129e0378ad51522c (diff) | |
| download | paste-759c5013fe8c1c8bebc31a6858bac54f9472e03a.tar.gz | |
o request.parse_formvars changes:
- now returns a multidict instead of dict (like parse_dict_querystring)
- removed all_as_list keyword arg: use multidict.mixed() instead to
produce an all_as_list dict
- preventing FieldStorage from parsing out QUERY_STRING during GET/HEAD
requests
- the fake_out_cgi check wasn't careful enough about multipart/form-data
content-types. Was also missing a StringIO import (r5471 broke file uploads)
o evalexception's wsgiapp decorator assumed parse_formvars would return
GET vars during a GET (buggy behavior), now it explicitly asks for them
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/do-it-yourself-framework.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/do-it-yourself-framework.txt b/docs/do-it-yourself-framework.txt index 42210b1..995ac42 100644 --- a/docs/do-it-yourself-framework.txt +++ b/docs/do-it-yourself-framework.txt @@ -123,7 +123,7 @@ fields:: The ``parse_formvars`` function just takes the WSGI environment and calls the `cgi <http://python.org/doc/current/lib/module-cgi.html>`_ -module (the ``FieldStorage`` class) and turns that into a dictionary. +module (the ``FieldStorage`` class) and turns that into a multidict. Now For a Framework =================== @@ -175,7 +175,7 @@ So here's how we might implement ``__call__``:: def __call__(self, environ, start_response): fields = parse_formvars(environ) obj = self.find_object(self.root, environ) - response_body = obj(**fields) + response_body = obj(**fields.mixed()) start_response('200 OK', [('content-type', 'text/html')]) return [response_body] @@ -285,7 +285,7 @@ like:: def __call__(self, environ, start_response): fields = parse_formvars(environ) obj = self.find_object(self.root, environ) - response_body = obj(**fields) + response_body = obj(**fields.mixed()) start_response('200 OK', [('content-type', 'text/html')]) return [response_body] |
