Skip to content

Commit

Permalink
Removing debugging statements from client
Browse files Browse the repository at this point in the history
  • Loading branch information
mpdaugherty committed May 7, 2012
1 parent e66a1df commit a18f68b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions socialregistration/contrib/googleapps/client.py
Expand Up @@ -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:
Expand All @@ -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

0 comments on commit a18f68b

Please sign in to comment.