From 07a8d9d9488967afb336fa8b736c430e07c3d72e Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 24 Apr 2008 13:44:09 +0000 Subject: [PATCH] category is mendatory --- src/common/caps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/caps.py b/src/common/caps.py index 0b63ec4a2..6c4a3444e 100644 --- a/src/common/caps.py +++ b/src/common/caps.py @@ -135,7 +135,7 @@ class CapsCache(object): ciself._identities = [] for identity in value: # dict are not hashable, so transform it into a tuple - t = (identity.get('category'), identity.get('type'), identity.get('xml:lang'), identity.get('name')) + t = (identity['category'], identity.get('type'), identity.get('xml:lang'), identity.get('name')) ciself._identities.append(ciself.__names.setdefault(t, t)) identities = property(_get_identities, _set_identities)