Skip to content

Commit 381c4e8

Browse files
committed
Support latest spyne release
My code is based on the example code in the master branch. There ServiceBase was exchanged with Service. Let's support both variants.
1 parent c019d99 commit 381c4e8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

shibboleth/views.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@
2020
#SLO (back-channel) / spyne stuff
2121
from spyne.model.primitive import Unicode
2222
#from spyne.model import XmlAttribute
23-
from spyne.service import Service
23+
try:
24+
from spyne.service import Service
25+
except ImportError:
26+
from spyne.service import ServiceBase as Service
27+
2428
from spyne.decorator import rpc
2529
from spyne import ComplexModel
2630

0 commit comments

Comments
 (0)