use the defaults, but allow post to override

This commit is contained in:
mixedpuppy 2010-09-13 14:42:56 -07:00
Родитель 0932ab4f30
Коммит 82f0254236
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -49,8 +49,7 @@ class responder(OpenIDResponder):
parameter that indicates what Google Apps should have access requested. parameter that indicates what Google Apps should have access requested.
""" """
request_attributes = request.POST.get('ax_attributes', request_attributes = request.POST.get('ax_attributes', ax_attributes.keys())
['country', 'email', 'first_name', 'last_name', 'language'])
ax_request = ax.FetchRequest() ax_request = ax.FetchRequest()
for attr in request_attributes: for attr in request_attributes:
ax_request.add(ax.AttrInfo(attributes[attr], required=True)) ax_request.add(ax.AttrInfo(attributes[attr], required=True))