server/sources/native.py
changeset 5752 b0bb553e3be4
parent 5736 375819ec7d43
parent 5751 1e5ef464cade
child 5768 1e73a466aa69
equal deleted inserted replaced
5743:4a0600664f85 5752:b0bb553e3be4
   332             if self.repo.config.open_connections_pools:
   332             if self.repo.config.open_connections_pools:
   333                 self.open_pool_connections()
   333                 self.open_pool_connections()
   334 
   334 
   335     def init(self):
   335     def init(self):
   336         self.init_creating()
   336         self.init_creating()
       
   337 
       
   338     def shutdown(self):
       
   339         if self._eid_creation_cnx:
       
   340             self._eid_creation_cnx.close()
       
   341             self._eid_creation_cnx = None
   337 
   342 
   338     # XXX deprecates [un]map_attribute ?
   343     # XXX deprecates [un]map_attribute ?
   339     def map_attribute(self, etype, attr, cb, sourcedb=True):
   344     def map_attribute(self, etype, attr, cb, sourcedb=True):
   340         self._rql_sqlgen.attr_map['%s.%s' % (etype, attr)] = (cb, sourcedb)
   345         self._rql_sqlgen.attr_map['%s.%s' % (etype, attr)] = (cb, sourcedb)
   341 
   346