diff options
author | Roland Hedberg <roland.hedberg@adm.umu.se> | 2013-11-12 11:02:27 -0800 |
---|---|---|
committer | Roland Hedberg <roland.hedberg@adm.umu.se> | 2013-11-12 11:02:27 -0800 |
commit | 5f15b494cd1802c9c15099c6536f6a31bc364cea (patch) | |
tree | 45eb3971e4974991e731a94e75207c22dfebdb25 /src/saml2/attribute_converter.py | |
parent | 0c634207dcc0ec0cad7e1e58d7dcfa473f10c379 (diff) | |
download | pysaml2-5f15b494cd1802c9c15099c6536f6a31bc364cea.tar.gz |
Text format editing.
Diffstat (limited to 'src/saml2/attribute_converter.py')
-rw-r--r-- | src/saml2/attribute_converter.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/saml2/attribute_converter.py b/src/saml2/attribute_converter.py index ab971245..328a9e84 100644 --- a/src/saml2/attribute_converter.py +++ b/src/saml2/attribute_converter.py @@ -19,9 +19,12 @@ import os import sys from importlib import import_module -from saml2.s_utils import factory, do_ava -from saml2 import saml, extension_elements_to_elements, SAMLError -from saml2.saml import NAME_FORMAT_URI, NAME_FORMAT_UNSPECIFIED +from saml2.s_utils import factory +from saml2.s_utils import do_ava +from saml2 import saml +from saml2 import extension_elements_to_elements +from saml2 import SAMLError +from saml2.saml import NAME_FORMAT_UNSPECIFIED import logging logger = logging.getLogger(__name__) @@ -84,7 +87,9 @@ def ac_factory(path=""): atco.from_dict(item) acs.append(atco) else: - for typ in ["basic", "saml_uri", "shibboleth_uri"]: + from saml2 import attributemaps + + for typ in attributemaps.__all__: mod = import_module(".%s" % typ, "saml2.attributemaps") for key, item in mod.__dict__.items(): if key.startswith("__"): |