[CalendarServer-changes] [9576] CalendarServer/branches/users/glyph/q

source_changes at macosforge.org source_changes at macosforge.org
Sat Aug 11 01:54:22 PDT 2012


Revision: 9576
          http://trac.macosforge.org/projects/calendarserver/changeset/9576
Author:   glyph at apple.com
Date:     2012-08-11 01:54:22 -0700 (Sat, 11 Aug 2012)
Log Message:
-----------
some docs.  what is this thing for again?

Modified Paths:
--------------
    CalendarServer/branches/users/glyph/q/twext/enterprise/adbapi2.py

Property Changed:
----------------
    CalendarServer/branches/users/glyph/q/

Modified: CalendarServer/branches/users/glyph/q/twext/enterprise/adbapi2.py
===================================================================
--- CalendarServer/branches/users/glyph/q/twext/enterprise/adbapi2.py	2012-08-11 08:54:21 UTC (rev 9575)
+++ CalendarServer/branches/users/glyph/q/twext/enterprise/adbapi2.py	2012-08-11 08:54:22 UTC (rev 9576)
@@ -750,16 +750,39 @@
 
 
 class _ConnectingPseudoTxn(object):
+    """
+    This is a pseudo-Transaction for bookkeeping purposes.
 
+    When a connection has asked to connect, but has not yet completed
+    connecting, the L{ConnectionPool} still needs a way to shut it down.  This
+    object provides that tracking handle, and will be present in the pool's
+    C{busy} list while it is populating the list.
+    """
+
     _retry = None
 
     def __init__(self, pool, holder):
+        """
+        Initialize the L{_ConnectingPseudoTxn}; get ready to connect.
+
+        @param pool: The pool that this connection attempt is participating in.
+        @type pool: L{ConnectionPool}
+
+        @param holder: the L{ThreadHolder} allocated to this connection attempt
+            and subsequent SQL executions for this connection.
+        @type holder: L{ThreadHolder}
+        """
         self._pool    = pool
         self._holder  = holder
         self._aborted = False
 
 
     def abort(self):
+        """
+        Ignore the result of attempting to connect to this database, and
+        instead simply close the connection and free the L{ThreadHolder}
+        allocated for it.
+        """
         if self._retry is not None:
             self._retry.cancel()
         d = self._holder.stop()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120811/2144323a/attachment-0001.html>


More information about the calendarserver-changes mailing list