~ubuntu-branches/ubuntu/quantal/python-django/quantal-security

« back to all changes in this revision

Viewing changes to docs/ref/request-response.txt

  • Committer: Bazaar Package Importer
  • Author(s): Jamie Strandboge
  • Date: 2010-10-12 11:34:35 UTC
  • mfrom: (4.4.9 sid)
  • mto: This revision was merged to the branch mainline in revision 30.
  • Revision ID: james.westby@ubuntu.com-20101012113435-5rk3p18nyanuhj6g
* SECURITY UPDATE: XSS in CSRF protections. New upstream release
  - CVE-2010-3082
* debian/patches/01_disable_url_verify_regression_tests.diff:
  - updated to disable another test that fails without internet connection
  - patch based on work by Kai Kasurinen and Krzysztof Klimonda
* debian/control: don't Build-Depends on locales-all, which doesn't exist
  in maverick

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
.. _ref-request-response:
2
 
 
3
1
============================
4
2
Request and response objects
5
3
============================
106
104
        * ``chunks(chunk_size=None)`` -- A generator that yields sequential
107
105
          chunks of data.
108
106
 
109
 
    See :ref:`topics-files` for more information.
 
107
    See :doc:`/topics/files` for more information.
110
108
 
111
109
    Note that ``FILES`` will only contain data if the request method was POST
112
110
    and the ``<form>`` that posted to the request had
165
163
 
166
164
    ``user`` is only available if your Django installation has the
167
165
    ``AuthenticationMiddleware`` activated. For more, see
168
 
    :ref:`topics-auth`.
 
166
    :doc:`/topics/auth`.
169
167
 
170
168
.. attribute:: HttpRequest.session
171
169
 
172
170
    A readable-and-writable, dictionary-like object that represents the current
173
171
    session. This is only available if your Django installation has session
174
 
    support activated. See the :ref:`session documentation
175
 
    <topics-http-sessions>` for full details.
 
172
    support activated. See the :doc:`session documentation
 
173
    </topics/http/sessions>` for full details.
176
174
 
177
175
.. attribute:: HttpRequest.raw_post_data
178
176
 
286
284
.. method:: QueryDict.setdefault(key, default)
287
285
 
288
286
    Just like the standard dictionary ``setdefault()`` method, except it uses
289
 
    ``__setitem__`` internally.
 
287
    ``__setitem__()`` internally.
290
288
 
291
289
.. method:: QueryDict.update(other_dict)
292
290
 
305
303
.. method:: QueryDict.items()
306
304
 
307
305
    Just like the standard dictionary ``items()`` method, except this uses the
308
 
    same last-value logic as ``__getitem()__``. For example::
 
306
    same last-value logic as ``__getitem__()``. For example::
309
307
 
310
308
           >>> q = QueryDict('a=1&a=2&a=3')
311
309
           >>> q.items()
315
313
 
316
314
    Just like the standard dictionary ``iteritems()`` method. Like
317
315
    :meth:`QueryDict.items()` this uses the same last-value logic as
318
 
    :meth:`QueryDict.__getitem()__`.
 
316
    :meth:`QueryDict.__getitem__()`.
319
317
 
320
318
.. method:: QueryDict.iterlists()
321
319
 
325
323
.. method:: QueryDict.values()
326
324
 
327
325
    Just like the standard dictionary ``values()`` method, except this uses the
328
 
    same last-value logic as ``__getitem()__``. For example::
 
326
    same last-value logic as ``__getitem__()``. For example::
329
327
 
330
328
           >>> q = QueryDict('a=1&a=2&a=3')
331
329
           >>> q.values()
498
496
.. method:: HttpResponse.__delitem__(header)
499
497
 
500
498
    Deletes the header with the given name. Fails silently if the header
501
 
    doesn't exist. Case-sensitive.
 
499
    doesn't exist. Case-insensitive.
502
500
 
503
501
.. method:: HttpResponse.__getitem__(header)
504
502
 
505
 
    Returns the value for the given header name. Case-sensitive.
 
503
    Returns the value for the given header name. Case-insensitive.
506
504
 
507
505
.. method:: HttpResponse.has_header(header)
508
506