Added norEduOrgAcronym to static org info for swamid entity categories.
This commit is contained in:
@@ -2,7 +2,7 @@ __author__ = 'rolandh'
|
|||||||
|
|
||||||
|
|
||||||
NAME = ["givenName", "displayName", "sn"]
|
NAME = ["givenName", "displayName", "sn"]
|
||||||
STATIC_ORG_INFO = ["c", "o", "co"]
|
STATIC_ORG_INFO = ["c", "o", "co", "norEduOrgAcronym"]
|
||||||
OTHER = ["eduPersonPrincipalName", "eduPersonScopedAffiliation", "mail"]
|
OTHER = ["eduPersonPrincipalName", "eduPersonScopedAffiliation", "mail"]
|
||||||
|
|
||||||
# These give you access to information
|
# These give you access to information
|
||||||
|
@@ -773,7 +773,8 @@ class MetadataStore(object):
|
|||||||
return [m["text"] for m in ad["affiliate_member"]]
|
return [m["text"] for m in ad["affiliate_member"]]
|
||||||
|
|
||||||
def entity_categories(self, entity_id):
|
def entity_categories(self, entity_id):
|
||||||
ext = self.__getitem__(entity_id)["extensions"]
|
ent = self.__getitem__(entity_id)
|
||||||
|
ext = ent["extensions"]
|
||||||
res = []
|
res = []
|
||||||
for elem in ext["extension_elements"]:
|
for elem in ext["extension_elements"]:
|
||||||
if elem["__class__"] == ENTITYATTRIBUTES:
|
if elem["__class__"] == ENTITYATTRIBUTES:
|
||||||
|
Reference in New Issue
Block a user