[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r7325 - trunk/gnue-common/src/datasources/drivers/Base
From: |
reinhard |
Subject: |
[gnue] r7325 - trunk/gnue-common/src/datasources/drivers/Base |
Date: |
Fri, 8 Apr 2005 17:02:12 -0500 (CDT) |
Author: reinhard
Date: 2005-04-08 17:02:10 -0500 (Fri, 08 Apr 2005)
New Revision: 7325
Modified:
trunk/gnue-common/src/datasources/drivers/Base/ResultSet.py
Log:
Added support for closing a cursor.
Modified: trunk/gnue-common/src/datasources/drivers/Base/ResultSet.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/Base/ResultSet.py 2005-04-08
09:51:10 UTC (rev 7324)
+++ trunk/gnue-common/src/datasources/drivers/Base/ResultSet.py 2005-04-08
22:02:10 UTC (rev 7325)
@@ -539,6 +539,8 @@
breaks up reference cycles so garbage collection can do it's job.
"""
+ self._close ()
+
for item in self._cachedRecords:
item._parent = None
@@ -608,7 +610,18 @@
for record in []:
yield record
+ # ---------------------------------------------------------------------------
+ def _close (self):
+ """
+ Close the cursor.
+
+ Descendants can overwrite this function to clean up things done in the
+ _query functions.
+ """
+ pass
+
+
# ---------------------------------------------------------------------------
# Sequence behaviour
# ---------------------------------------------------------------------------
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r7325 - trunk/gnue-common/src/datasources/drivers/Base,
reinhard <=