From 82f0254236506d0461d9aa11269bd3117f7ad0e9 Mon Sep 17 00:00:00 2001 From: mixedpuppy Date: Mon, 13 Sep 2010 14:42:56 -0700 Subject: [PATCH] use the defaults, but allow post to override --- linkdrop/lib/oauth/google_.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/linkdrop/lib/oauth/google_.py b/linkdrop/lib/oauth/google_.py index b6f6447..835dcce 100644 --- a/linkdrop/lib/oauth/google_.py +++ b/linkdrop/lib/oauth/google_.py @@ -49,8 +49,7 @@ class responder(OpenIDResponder): parameter that indicates what Google Apps should have access requested. """ - request_attributes = request.POST.get('ax_attributes', - ['country', 'email', 'first_name', 'last_name', 'language']) + request_attributes = request.POST.get('ax_attributes', ax_attributes.keys()) ax_request = ax.FetchRequest() for attr in request_attributes: ax_request.add(ax.AttrInfo(attributes[attr], required=True))