add str() to avoid kilometers of information while printing content (due to __repr__ of yams objects) tls-sprint
authorsylvain.thenault@logilab.fr
Wed, 08 Apr 2009 11:30:32 +0200
branchtls-sprint
changeset 1283 d812bd08c11c
parent 1282 272d8ec6f308
child 1284 63ed4f4ff38d
add str() to avoid kilometers of information while printing content (due to __repr__ of yams objects)
rtags.py
--- a/rtags.py	Wed Apr 08 11:29:28 2009 +0200
+++ b/rtags.py	Wed Apr 08 11:30:32 2009 +0200
@@ -25,7 +25,7 @@
     def set_rtag(self, tag, rtype, role, stype='*', otype='*'):
         assert not self.use_set
         assert role in ('subject', 'object'), role
-        self._tagdefs[(rtype, role, stype, otype)] = tag
+        self._tagdefs[(str(rtype), role, str(stype), str(otype))] = tag
         
     def rtag(self, rtype, role, stype='*', otype='*'):
         assert not self.use_set