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

« back to all changes in this revision

Viewing changes to docs/ref/signals.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-signals:
2
 
 
3
1
=======
4
2
Signals
5
3
=======
8
6
 
9
7
.. seealso::
10
8
 
11
 
    See the documentation on the :ref:`signal dispatcher <topics-signals>` for
 
9
    See the documentation on the :doc:`signal dispatcher </topics/signals>` for
12
10
    information regarding how to register for and receive signals.
13
11
 
14
 
    The :ref:`comment framework <ref-contrib-comments-index>` sends a :ref:`set
15
 
    of comment-related signals <ref-contrib-comments-signals>`.
 
12
    The :doc:`comment framework </ref/contrib/comments/index>` sends a :doc:`set
 
13
    of comment-related signals </ref/contrib/comments/signals>`.
16
14
 
17
15
Model signals
18
16
=============
61
59
        A dictionary of keyword arguments passed to
62
60
        :meth:`~django.db.models.Model.__init__`:.
63
61
 
64
 
For example, the :ref:`tutorial <intro-tutorial01>` has this line:
 
62
For example, the :doc:`tutorial </intro/tutorial01>` has this line:
65
63
 
66
64
.. code-block:: python
67
65
 
313
311
Management signals
314
312
==================
315
313
 
316
 
Signals sent by :ref:`django-admin <ref-django-admin>`.
 
314
Signals sent by :doc:`django-admin </ref/django-admin>`.
317
315
 
318
316
post_syncdb
319
317
-----------
416
414
.. module:: django.test.signals
417
415
   :synopsis: Signals sent during testing.
418
416
 
419
 
Signals only sent when :ref:`running tests <topics-testing>`.
 
417
Signals only sent when :doc:`running tests </topics/testing>`.
420
418
 
421
419
template_rendered
422
420
-----------------
438
436
    context
439
437
        The :class:`~django.template.Context` with which the template was
440
438
        rendered.
 
439
 
 
440
Database Wrappers
 
441
=================
 
442
 
 
443
.. module:: django.db.backends
 
444
   :synopsis: Core signals sent by the database wrapper.
 
445
 
 
446
Signals sent by the database wrapper when a database connection is
 
447
initiated.
 
448
 
 
449
connection_created
 
450
------------------
 
451
 
 
452
.. data:: django.db.backends.signals.connection_created
 
453
   :module:
 
454
 
 
455
.. versionadded:: 1.1
 
456
 
 
457
.. versionchanged:: 1.2
 
458
   The connection argument was added
 
459
 
 
460
Sent when the database wrapper makes the initial connection to the
 
461
database.  This is particularly useful if you'd like to send any post
 
462
connection commands to the SQL backend.
 
463
 
 
464
Arguments sent with this signal:
 
465
 
 
466
    sender
 
467
        The database wrapper class -- i.e.
 
468
        :class: `django.db.backends.postgresql_psycopg2.DatabaseWrapper` or
 
469
        :class: `django.db.backends.mysql.DatabaseWrapper`, etc.
 
470
 
 
471
    connection
 
472
        The database connection that was opened. This can be used in a
 
473
        multiple-database configuration to differentiate connection signals
 
474
        from different databases.