equal
deleted
inserted
replaced
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) |