summaryrefslogtreecommitdiffstats
path: root/django_authopenid/util.py
diff options
context:
space:
mode:
authorroot <root@u15356270.onlinehome-server.com>2009-11-13 20:18:31 -0500
committerroot <root@u15356270.onlinehome-server.com>2009-11-13 20:31:16 -0500
commit40b5c06085fe3d079094e8ef779a7b119586f9e8 (patch)
tree5a3edfb81cc137dbc877f75f9bde80e9720b3ba0 /django_authopenid/util.py
parent2022b772a01f36fa74de002b5370dd70b6c051ba (diff)
downloadaskbot-40b5c06085fe3d079094e8ef779a7b119586f9e8.tar.gz
askbot-40b5c06085fe3d079094e8ef779a7b119586f9e8.tar.bz2
askbot-40b5c06085fe3d079094e8ef779a7b119586f9e8.zip
better comments, email subscriptions, corrected view counter, some ie7 issues, wiki optional with settings.WIKI_ON, site can be mounted on arbitrary url prefix, english language improvements, added feedback form, versioned css and js files to force browser cache reload when settings.RESOURCE_REVISION is incremented , other fixes
Diffstat (limited to 'django_authopenid/util.py')
-rw-r--r--django_authopenid/util.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/django_authopenid/util.py b/django_authopenid/util.py
index 54c1246b..edb6808e 100644
--- a/django_authopenid/util.py
+++ b/django_authopenid/util.py
@@ -7,7 +7,7 @@ import openid.store
from django.db.models.query import Q
from django.conf import settings
from django.http import str_to_unicode
-
+from django.core.urlresolvers import reverse
# needed for some linux distributions like debian
try:
@@ -22,7 +22,7 @@ from models import Association, Nonce
__all__ = ['OpenID', 'DjangoOpenIDStore', 'from_openid_response', 'clean_next']
-DEFAULT_NEXT = getattr(settings, 'OPENID_REDIRECT_NEXT', '/')
+DEFAULT_NEXT = '/' + getattr(settings, 'FORUM_SCRIPT_ALIAS')
def clean_next(next):
if next is None:
return DEFAULT_NEXT
@@ -32,6 +32,9 @@ def clean_next(next):
return next
return DEFAULT_NEXT
+def get_next_url(request):
+ return clean_next(request.REQUEST.get('next'))
+
class OpenID:
def __init__(self, openid_, issued, attrs=None, sreg_=None):
self.openid = openid_