virtualenv/web/res/patch/social_auth_views_diff.diff
changeset 974 328aea4ee92b
parent 973 8251c6a02d6f
child 975 54262ea8aee4
--- a/virtualenv/web/res/patch/social_auth_views_diff.diff	Mon Nov 26 18:56:46 2012 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,31 +0,0 @@
---- 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',