server/sources/native.py
changeset 4512 e7ac20bf3629
parent 4252 6c4f109c2b03
child 4517 0f3c10fc42b2
--- a/server/sources/native.py	Mon Feb 08 21:29:59 2010 +0100
+++ b/server/sources/native.py	Mon Feb 08 22:41:07 2010 +0100
@@ -231,6 +231,9 @@
     def map_attribute(self, etype, attr, cb):
         self._rql_sqlgen.attr_map['%s.%s' % (etype, attr)] = cb
 
+    def unmap_attribute(self, etype, attr):
+        self._rql_sqlgen.attr_map.pop('%s.%s' % (etype, attr), None)
+
     # ISource interface #######################################################
 
     def compile_rql(self, rql, sols):