rtags.py
branchtls-sprint
changeset 1742 25a765e756c4
parent 1740 2292ae32c98f
child 1744 056ed8fca8d3
--- a/rtags.py	Tue May 12 15:56:10 2009 +0200
+++ b/rtags.py	Tue May 12 16:24:27 2009 +0200
@@ -64,7 +64,7 @@
                             stype, otype = eschema, tschema
                         else:
                             stype, otype = tschema, eschema
-                        self._initfunc(stype, rtype, otype, role)
+                        self._initfunc(self, stype, rtype, otype, role)
 
     # rtag declaration api ####################################################
 
@@ -89,7 +89,7 @@
         #else:
         stype, rtype, otype, tagged = [str(k) for k in key]
         if self._allowed_values is not None:
-            assert tag in self._allowed_values
+            assert tag in self._allowed_values, '%r is not an allowed tag' % tag
         self._tagdefs[(rtype, tagged, stype, otype)] = tag
 
     # rtag runtime api ########################################################