Changeset 668
- Timestamp:
- 09/22/05 20:17:39 (3 years ago)
- Files:
-
- django/trunk/django/utils/httpwrappers.py (modified) (1 diff)
- django/trunk/docs/request_response.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/utils/httpwrappers.py
r613 r668 176 176 self.cookies[key][var.replace('_', '-')] = val 177 177 178 def delete_cookie(self, key): 179 try: 180 self.cookies[key]['max_age'] = 0 181 except KeyError: 182 pass 183 178 184 def get_content_as_string(self, encoding): 179 185 """ django/trunk/docs/request_response.txt
r613 r668 287 287 .. _`cookie Morsel`: http://www.python.org/doc/current/lib/morsel-objects.html 288 288 289 ``delete_cookie(key)`` 290 Deletes the cookie with the given key. Fails silently if the key doesn't 291 exist. 292 289 293 ``get_content_as_string(encoding)`` 290 294 Returns the content as a Python string, encoding it from a Unicode object
