[web/uicfg] better error reporting for reledit_ctrl stable
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Fri, 03 Sep 2010 15:42:14 +0200
branchstable
changeset 6172 9987f5525e20
parent 6171 8af7d755f05f
child 6173 eb386e473044
child 6175 104453c4ed3e
[web/uicfg] better error reporting for reledit_ctrl
web/uicfg.py
--- a/web/uicfg.py	Wed Sep 01 15:56:21 2010 +0200
+++ b/web/uicfg.py	Fri Sep 03 15:42:14 2010 +0200
@@ -410,7 +410,7 @@
 
     def tag_relation(self, key, tag):
         for tagkey in tag.iterkeys():
-            assert tagkey in self._keys
+            assert tagkey in self._keys, 'tag %r not in accepted tags: %r' % (tag, self._keys)
         return super(_ReleditTags, self).tag_relation(key, tag)
 
 reledit_ctrl = _ReleditTags('reledit')