new del_rtag method, for testing purpose (at least) tls-sprint
authorsylvain.thenault@logilab.fr
Wed, 15 Apr 2009 14:06:08 +0200
branchtls-sprint
changeset 1356 7b4802822f40
parent 1345 9f086baa2537
child 1357 e5a97779c7fc
new del_rtag method, for testing purpose (at least)
rtags.py
--- a/rtags.py	Tue Apr 14 18:03:37 2009 +0200
+++ b/rtags.py	Wed Apr 15 14:06:08 2009 +0200
@@ -27,6 +27,11 @@
         assert role in ('subject', 'object'), role
         self._tagdefs[(str(rtype), role, str(stype), str(otype))] = tag
         
+    def del_rtag(self, rtype, role, stype='*', otype='*'):
+        assert not self.use_set
+        assert role in ('subject', 'object'), role
+        del self._tagdefs[(str(rtype), role, str(stype), str(otype))]
+        
     def rtag(self, rtype, role, stype='*', otype='*'):
         assert not self.use_set
         for key in reversed(self._get_keys(rtype, role, stype, otype)):