From a18f68bc442cb4b8348643e9fb6a395c0f89af26 Mon Sep 17 00:00:00 2001 From: "Michael P. Daugherty" Date: Mon, 7 May 2012 14:50:43 +0800 Subject: [PATCH] Removing debugging statements from client --- socialregistration/contrib/googleapps/client.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/socialregistration/contrib/googleapps/client.py b/socialregistration/contrib/googleapps/client.py index f2c0432..4a82161 100644 --- a/socialregistration/contrib/googleapps/client.py +++ b/socialregistration/contrib/googleapps/client.py @@ -31,10 +31,8 @@ def get_redirect_url(self): def complete(self, GET, path): super(GoogleAppsClient, self).complete(GET, path) - #self.result = self.consumer.complete(GET, urlparse.urljoin(self.get_realm(), - # path)) + if self.is_valid: - print '\n\n' try: ax_response = ax.FetchResponse.fromSuccessResponse(self.result) except AttributeError: @@ -54,7 +52,8 @@ def complete(self, GET, path): ('language', 'language')]: try: setattr(self, prop, ax_response.get(self.available_info[alias])) - print '{} = {}'.format(prop, getattr(self, prop)) except KeyError: - print '{} not available'.format(prop) - print '\n\n\n' + # This information isn't available in the response. The user may not have + # entered it or we may not have permission to access it. + # Either way, life goes on. + pass