Skip to content

Commit 048797c

Browse files
author
Roland Hedberg
committed
Don't fail if no xmlsec binary defined.
1 parent 73849b4 commit 048797c

File tree

1 file changed

+5
-17
lines changed

1 file changed

+5
-17
lines changed

tools/mdexport.py

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,17 @@
1-
#!/usr/bin/env python
2-
from saml2.sigver import _get_xmlsec_cryptobackend, SecurityContext
1+
#!/usr/bin/env python
2+
from saml2.sigver import _get_xmlsec_cryptobackend
3+
from saml2.sigver import SecurityContext
34
from saml2.httpbase import HTTPBase
45

56
from saml2 import saml
67
from saml2 import md
78
from saml2.attribute_converter import ac_factory
8-
from saml2.extension import dri
9-
from saml2.extension import idpdisc
10-
from saml2.extension import mdattr
11-
from saml2.extension import mdrpi
12-
from saml2.extension import mdui
13-
from saml2.extension import shibmd
14-
from saml2.extension import ui
159
from saml2 import xmldsig
1610
from saml2 import xmlenc
1711

1812
import argparse
1913

20-
from saml2.mdstore import MetaDataFile, MetaDataExtern
14+
from saml2.mdstore import MetaDataFile, MetaDataExtern, load_extensions
2115

2216
__author__ = 'rolandh'
2317

@@ -29,18 +23,12 @@
2923

3024
ONTS = {
3125
saml.NAMESPACE: saml,
32-
mdui.NAMESPACE: mdui,
33-
mdattr.NAMESPACE: mdattr,
34-
mdrpi.NAMESPACE: mdrpi,
35-
dri.NAMESPACE: dri,
36-
ui.NAMESPACE: ui,
37-
idpdisc.NAMESPACE: idpdisc,
3826
md.NAMESPACE: md,
3927
xmldsig.NAMESPACE: xmldsig,
4028
xmlenc.NAMESPACE: xmlenc,
41-
shibmd.NAMESPACE: shibmd
4229
}
4330

31+
ONTS.update(load_extensions())
4432

4533
parser = argparse.ArgumentParser()
4634
parser.add_argument('-t', dest='type')

0 commit comments

Comments
 (0)