Corrections of the code for the embed popup. Functions are now in the embed_popup.js
With chrome the player used to play the video even when it wasn't supposed to be displayed and kept playing when we hid the player. When we changed between div and iframe the player started even when it was suppose to be hidden. It's now solved.
--- 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',