server/sources/native.py
changeset 9492 c7fc56eecd1a
parent 9375 8e88576787c3
child 9543 39f981482e34
child 9701 46c8d8701240
equal deleted inserted replaced
9484:31f070752462 9492:c7fc56eecd1a
   422     def shutdown(self):
   422     def shutdown(self):
   423         if self._eid_creation_cnx:
   423         if self._eid_creation_cnx:
   424             self._eid_creation_cnx.close()
   424             self._eid_creation_cnx.close()
   425             self._eid_creation_cnx = None
   425             self._eid_creation_cnx = None
   426 
   426 
   427     # XXX deprecates [un]map_attribute ?
   427     # XXX deprecates [un]map_attribute?
   428     def map_attribute(self, etype, attr, cb, sourcedb=True):
   428     def map_attribute(self, etype, attr, cb, sourcedb=True):
   429         self._rql_sqlgen.attr_map['%s.%s' % (etype, attr)] = (cb, sourcedb)
   429         self._rql_sqlgen.attr_map['%s.%s' % (etype, attr)] = (cb, sourcedb)
   430 
   430 
   431     def unmap_attribute(self, etype, attr):
   431     def unmap_attribute(self, etype, attr):
   432         self._rql_sqlgen.attr_map.pop('%s.%s' % (etype, attr), None)
   432         self._rql_sqlgen.attr_map.pop('%s.%s' % (etype, attr), None)