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