Changeset 8215 for django/branches/gis/django/http/__init__.py
- Timestamp:
- 08/05/08 12:15:33 (5 months ago)
- Files:
-
- django/branches/gis (modified) (1 prop)
- django/branches/gis/django/http/__init__.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/gis
- Property svnmerge-integrated changed from /django/trunk:1-7978 to /django/trunk:1-8214
django/branches/gis/django/http/__init__.py
r7836 r8215 32 32 self.GET, self.POST, self.COOKIES, self.META, self.FILES = {}, {}, {}, {}, {} 33 33 self.path = '' 34 self.path_info = '' 34 35 self.method = None 35 36 … … 38 39 (pformat(self.GET), pformat(self.POST), pformat(self.COOKIES), 39 40 pformat(self.META)) 40 41 def __getitem__(self, key):42 for d in (self.POST, self.GET):43 if key in d:44 return d[key]45 raise KeyError, "%s not found in either POST or GET" % key46 47 def has_key(self, key):48 return key in self.GET or key in self.POST49 50 __contains__ = has_key51 41 52 42 def get_host(self): … … 443 433 else: 444 434 return s 435
