# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1239797168 -7200 # Node ID 7b4802822f4011405971c0d244ba250a3260c32e # Parent 9f086baa2537be89ffa7eeb146fc6d2096dbc794 new del_rtag method, for testing purpose (at least) diff -r 9f086baa2537 -r 7b4802822f40 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)):