From a939f4810714fab3cc2d7ede2f95a3aace5477e1 Mon Sep 17 00:00:00 2001 From: pjenvey Date: Tue, 20 Jun 2006 22:32:10 +0000 Subject: made MultiDict iterable --- paste/request.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'paste/request.py') diff --git a/paste/request.py b/paste/request.py index 40c50d6..81165e9 100644 --- a/paste/request.py +++ b/paste/request.py @@ -21,14 +21,14 @@ import cgi import textwrap from Cookie import SimpleCookie import urlparse -from util.UserDict24 import UserDict, DictMixin +from util.UserDict24 import DictMixin, IterableUserDict, UserDict __all__ = ['get_cookies', 'get_cookie_dict', 'parse_querystring', 'parse_formvars', 'construct_url', 'path_info_split', 'path_info_pop', 'resolve_relative_url', 'EnvironHeaders'] -class MultiDict(UserDict): +class MultiDict(IterableUserDict): """Acts as a normal dict, but assumes all values are lists, and retrieving an item retrieves the first value in the list. getlist retrieves the full list""" -- cgit v1.2.1