Author: leidel
Date: Sat Oct 4 11:37:12 2008
New Revision: 1010
Modified:
trunk/apps/local_apps/authsub/views.py
Log:
Made redirect url of authsub.login view configurable
Modified: trunk/apps/local_apps/authsub/views.py
==============================================================================
--- trunk/apps/local_apps/authsub/views.py (original)
+++ trunk/apps/local_apps/authsub/views.py Sat Oct 4 11:37:12 2008
@@ -1,4 +1,5 @@
from django.http import get_host
+from django.core.urlresolvers import reverse
from django.utils.html import escape
import gdata.contacts.service
@@ -26,7 +27,7 @@
contacts_service = gdata.contacts.service.ContactsService()
return contacts_service.GenerateAuthSubURL(next, scope, secure,
session);
-def login(request, redirect_to="/invitations/contacts"): # @@@ redirect_to
should not be hard-coded here
+def login(request, redirect_to=reverse('invitations_contacts')):
if "token" in request.GET:
# add token to session for now
request.session['authsub_token'] = request.GET["token"]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pinax-updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---