category is mendatory

This commit is contained in:
Yann Leboulanger 2008-04-24 13:44:09 +00:00
parent 6990b23bcc
commit 07a8d9d948
1 changed files with 1 additions and 1 deletions

View File

@ -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)