rtags.py
branchtls-sprint
changeset 1752 4b0b912ff5b7
parent 1748 aa1806e76699
child 1769 fb91d2b8a441
--- a/rtags.py	Tue May 12 18:14:46 2009 +0200
+++ b/rtags.py	Tue May 12 18:15:49 2009 +0200
@@ -10,6 +10,9 @@
 
 from logilab.common.logging_ext import set_log_methods
 
+RTAGS = []
+def register_rtag(rtag):
+    RTAGS.append(rtag)
 
 class RelationTags(object):
     """a tag store for full relation definitions :
@@ -26,7 +29,8 @@
         if allowed_values is not None:
             self._allowed_values = allowed_values
         self._initfunc = initfunc
-
+        register_rtag(self)
+        
     def __repr__(self):
         return repr(self._tagdefs)