should not raise KeyError if key's missing
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 27 Jan 2010 10:17:27 +0100
changeset 4397 fbac86ca7af1
parent 4396 98e98a5aa399
child 4399 bc8d7ac70347
should not raise KeyError if key's missing
web/uicfg.py
--- a/web/uicfg.py	Wed Jan 27 10:00:58 2010 +0100
+++ b/web/uicfg.py	Wed Jan 27 10:17:27 2010 +0100
@@ -339,7 +339,7 @@
 
     def get(self, *key):
         # overriden to avoid recomputing done in parent classes
-        return self._tagdefs[key]
+        return self._tagdefs.get(key, ())
 
     def relations_by_section(self, entity, formtype, section,
                              permission=None, strict=False):