server/sources/native.py
changeset 9543 39f981482e34
parent 9512 88dc96fc9fc1
parent 9492 c7fc56eecd1a
child 9546 a0cf2993b6d3
equal deleted inserted replaced
9520:78702b55c089 9543:39f981482e34
   370     def shutdown(self):
   370     def shutdown(self):
   371         if self._eid_creation_cnx:
   371         if self._eid_creation_cnx:
   372             self._eid_creation_cnx.close()
   372             self._eid_creation_cnx.close()
   373             self._eid_creation_cnx = None
   373             self._eid_creation_cnx = None
   374 
   374 
   375     # XXX deprecates [un]map_attribute ?
   375     # XXX deprecates [un]map_attribute?
   376     def map_attribute(self, etype, attr, cb, sourcedb=True):
   376     def map_attribute(self, etype, attr, cb, sourcedb=True):
   377         self._rql_sqlgen.attr_map['%s.%s' % (etype, attr)] = (cb, sourcedb)
   377         self._rql_sqlgen.attr_map['%s.%s' % (etype, attr)] = (cb, sourcedb)
   378 
   378 
   379     def unmap_attribute(self, etype, attr):
   379     def unmap_attribute(self, etype, attr):
   380         self._rql_sqlgen.attr_map.pop('%s.%s' % (etype, attr), None)
   380         self._rql_sqlgen.attr_map.pop('%s.%s' % (etype, attr), None)