Added norEduOrgAcronym to static org info for swamid entity categories.

This commit is contained in:
Roland Hedberg
2014-03-14 15:45:52 +01:00
parent dc73a04085
commit c784e724ff
2 changed files with 3 additions and 2 deletions

View File

@@ -2,7 +2,7 @@ __author__ = 'rolandh'
NAME = ["givenName", "displayName", "sn"]
STATIC_ORG_INFO = ["c", "o", "co"]
STATIC_ORG_INFO = ["c", "o", "co", "norEduOrgAcronym"]
OTHER = ["eduPersonPrincipalName", "eduPersonScopedAffiliation", "mail"]
# These give you access to information

View File

@@ -773,7 +773,8 @@ class MetadataStore(object):
return [m["text"] for m in ad["affiliate_member"]]
def entity_categories(self, entity_id):
ext = self.__getitem__(entity_id)["extensions"]
ent = self.__getitem__(entity_id)
ext = ent["extensions"]
res = []
for elem in ext["extension_elements"]:
if elem["__class__"] == ENTITYATTRIBUTES: