Author: russellm
Date: 2010-08-30 08:25:47 -0500 (Mon, 30 Aug 2010)
New Revision: 13675

Modified:
   django/branches/releases/1.2.X/docs/ref/signals.txt
Log:
[1.2.X] Fixed #14054 -- Added documentation for the connection_created event. 
Thanks to Rob Hudson for the report and patch.

Backport of r13673 from trunk.

Modified: django/branches/releases/1.2.X/docs/ref/signals.txt
===================================================================
--- django/branches/releases/1.2.X/docs/ref/signals.txt 2010-08-30 13:25:22 UTC 
(rev 13674)
+++ django/branches/releases/1.2.X/docs/ref/signals.txt 2010-08-30 13:25:47 UTC 
(rev 13675)
@@ -436,3 +436,39 @@
     context
         The :class:`~django.template.Context` with which the template was
         rendered.
+
+Database Wrappers
+=================
+
+.. module:: django.db.backends
+   :synopsis: Core signals sent by the database wrapper.
+
+Signals sent by the database wrapper when a database connection is
+initiated.
+
+connection_created
+------------------
+
+.. data:: django.db.backends.signals.connection_created
+   :module:
+
+.. versionadded:: 1.1
+
+.. versionchanged:: 1.2
+   The connection argument was added
+
+Sent when the database wrapper makes the initial connection to the
+database.  This is particularly useful if you'd like to send any post
+connection commands to the SQL backend.
+
+Arguments sent with this signal:
+
+    sender
+        The database wrapper class -- i.e.
+        :class: `django.db.backends.postgresql_psycopg2.DatabaseWrapper` or
+        :class: `django.db.backends.mysql.DatabaseWrapper`, etc.
+
+    connection
+        The database connection that was opened. This can be used in a
+        multiple-database configuration to differentiate connection signals
+        from different databases.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to