server/virtualenv/web/res/patch/social_auth_views_diff.diff
changeset 3 fc0f3e398166
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/server/virtualenv/web/res/patch/social_auth_views_diff.diff	Fri May 29 02:22:11 2015 +0200
@@ -0,0 +1,31 @@
+--- D:/CavalieT/My Documents/Flex Builder 3/platform_diane/platform/virtualenv/web/res/src/omab-django-social-auth-v0.3.8-9-g5d610a5/omab-django-social-auth-5d610a5/social_auth/views.py	lun. mars 28 12:03:45 2011
++++ D:/CavalieT/My Documents/Flex Builder 3/platform_diane/platform/virtualenv/web/env/myplatformenv/Lib/site-packages/django_social_auth-0.3.8-py2.6.egg/social_auth/views.py	ven. avr.  8 12:06:02 2011
+@@ -7,13 +7,27 @@
+ from django.contrib.auth import login, REDIRECT_FIELD_NAME
+ from django.contrib.auth.decorators import login_required
+ 
+-from social_auth.backends import get_backend
++from social_auth.backends import get_backend, get_backends
+ from social_auth.utils import sanitize_redirect
+ 
+ 
+ DEFAULT_REDIRECT = getattr(settings, 'LOGIN_REDIRECT_URL', '')
+ 
++#TC
++def list():
++    """Start list process"""
++    log_url = getattr(settings, 'LOGIN_URL', '')
++    response = "<ul>"
++    # We list all wanted backends among all availables 
++    for backend in get_backends():
++        for backend_str in settings.AUTHENTICATION_BACKENDS:
++            if backend in backend_str:
++                response += "<li><a href=\"" + log_url + backend + "\">" + backend + "</a></li>"
++    response += "</ul>"
++    return response 
++#END change by TC
+ 
++
+ def auth(request, backend):
+     """Start authentication process"""
+     complete_url = getattr(settings, 'SOCIAL_AUTH_COMPLETE_URL_NAME',