server/sources/native.py
changeset 5691 ba2347050144
parent 5655 ef903fff826d
parent 5690 6de8437b06bd
child 5736 375819ec7d43
equal deleted inserted replaced
5689:18d4e78b9369 5691:ba2347050144
   254         self._cache = Cache(repo.config['rql-cache-size'])
   254         self._cache = Cache(repo.config['rql-cache-size'])
   255         self._temp_table_data = {}
   255         self._temp_table_data = {}
   256         # we need a lock to protect eid attribution function (XXX, really?
   256         # we need a lock to protect eid attribution function (XXX, really?
   257         # explain)
   257         # explain)
   258         self._eid_creation_lock = Lock()
   258         self._eid_creation_lock = Lock()
   259         self._eid_creation_cnx = self.get_connection()
   259         self._eid_creation_cnx = None
   260         # (etype, attr) / storage mapping
   260         # (etype, attr) / storage mapping
   261         self._storages = {}
   261         self._storages = {}
   262         # entity types that may be used by other multi-sources instances
   262         # entity types that may be used by other multi-sources instances
   263         self.multisources_etypes = set(repo.config['multi-sources-etypes'])
   263         self.multisources_etypes = set(repo.config['multi-sources-etypes'])
   264         # XXX no_sqlite_wrap trick since we've a sqlite locking pb when
   264         # XXX no_sqlite_wrap trick since we've a sqlite locking pb when