summaryrefslogtreecommitdiffstats
path: root/ipsilon/providers/saml2/provider.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2015-04-29 13:57:34 -0400
committerSimo Sorce <simo@redhat.com>2015-05-05 14:32:24 -0400
commit158c4cdefc0bd5b8dabe38685c1bebccc24d656b (patch)
treeec4a177cfb380a7cf1df77ffd5d5e4d783997bba /ipsilon/providers/saml2/provider.py
parentf54958e7101614a64d2dceb18b46d68a88130506 (diff)
downloadipsilon-158c4cdefc0bd5b8dabe38685c1bebccc24d656b.tar.gz
ipsilon-158c4cdefc0bd5b8dabe38685c1bebccc24d656b.tar.xz
ipsilon-158c4cdefc0bd5b8dabe38685c1bebccc24d656b.zip
Drop usage of self._debug and use self.debug instead
This method was deprecated but still used in a lot of places. https://fedorahosted.org/ipsilon/ticket/120 Signed-off-by: Rob Crittenden <rcritten@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'ipsilon/providers/saml2/provider.py')
-rw-r--r--ipsilon/providers/saml2/provider.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/ipsilon/providers/saml2/provider.py b/ipsilon/providers/saml2/provider.py
index d3cc144..5d36fbd 100644
--- a/ipsilon/providers/saml2/provider.py
+++ b/ipsilon/providers/saml2/provider.py
@@ -32,7 +32,7 @@ class InvalidProviderId(ProviderException):
def __init__(self, code):
message = 'Invalid Provider ID: %s' % code
super(InvalidProviderId, self).__init__(message)
- self._debug(message)
+ self.debug(message)
class NameIdNotAllowed(Exception):
@@ -207,12 +207,12 @@ class ServiceProvider(ServiceProviderConfig):
self.load_config()
def get_valid_nameid(self, nip):
- self._debug('Requested NameId [%s]' % (nip.format,))
+ self.debug('Requested NameId [%s]' % (nip.format,))
if nip.format is None:
return SAML2_NAMEID_MAP[self.default_nameid]
else:
allowed = self.allowed_nameids
- self._debug('Allowed NameIds %s' % (repr(allowed)))
+ self.debug('Allowed NameIds %s' % (repr(allowed)))
for nameid in allowed:
if nip.format == SAML2_NAMEID_MAP[nameid]:
return nip.format
@@ -291,7 +291,7 @@ class IdentityProvider(Log):
def add_provider(self, sp):
self.server.addProviderFromBuffer(lasso.PROVIDER_ROLE_SP,
sp['metadata'])
- self._debug('Added SP %s' % sp['name'])
+ self.debug('Added SP %s' % sp['name'])
def get_login_handler(self, dump=None):
if dump: