[source] don't create the eid_creation connection at source initiliaztion time
This fixes the "already opened connection bug" in db-restore for instance.
--- a/server/sources/native.py Mon Jun 07 18:15:39 2010 +0200
+++ b/server/sources/native.py Wed Jun 09 09:41:36 2010 +0200
@@ -256,7 +256,7 @@
# we need a lock to protect eid attribution function (XXX, really?
# explain)
self._eid_creation_lock = Lock()
- self._eid_creation_cnx = self.get_connection()
+ self._eid_creation_cnx = None
# (etype, attr) / storage mapping
self._storages = {}
# entity types that may be used by other multi-sources instances