server/sources/__init__.py
branchstable
changeset 7037 6a8235456fe1
parent 6889 37668bf302f5
child 7040 9b1f9bc74f5d
--- a/server/sources/__init__.py	Thu Mar 03 16:05:57 2011 +0100
+++ b/server/sources/__init__.py	Thu Mar 03 17:50:13 2011 +0100
@@ -524,7 +524,9 @@
         pass
     def cursor(self):
         return None # no actual cursor support
-
+    def close(self):
+        if hasattr(self.cnx, 'close'):
+            self.cnx.close()
 
 from cubicweb.server import SOURCE_TYPES