server/sources/native.py
changeset 5752 b0bb553e3be4
parent 5736 375819ec7d43
parent 5751 1e5ef464cade
child 5768 1e73a466aa69
--- a/server/sources/native.py	Mon Jun 14 12:13:46 2010 +0200
+++ b/server/sources/native.py	Tue Jun 15 18:16:19 2010 +0200
@@ -335,6 +335,11 @@
     def init(self):
         self.init_creating()
 
+    def shutdown(self):
+        if self._eid_creation_cnx:
+            self._eid_creation_cnx.close()
+            self._eid_creation_cnx = None
+
     # XXX deprecates [un]map_attribute ?
     def map_attribute(self, etype, attr, cb, sourcedb=True):
         self._rql_sqlgen.attr_map['%s.%s' % (etype, attr)] = (cb, sourcedb)