Commits

Anonymous committed 4755e57

tweaks to work with django 1.5

Comments (0)

Files changed (3)

django_authopenid/utils/__init__.py

 import urllib
 
 from django.conf import settings
-from django.http import str_to_unicode, get_host
+
 from django.utils.html import escape
 
 from openid.consumer.discover import discover
 def clean_next(next):
     if next is None:
         return DEFAULT_NEXT
-    next = str_to_unicode(urllib.unquote(next), 'utf-8')
+    next = unicode(urllib.unquote(next), 'utf-8')
     next = next.strip()
     if next.startswith('/'):
         return next
         protocol = 'https'
     else:
         protocol = 'http'
-    host = escape(get_host(request))
+    host = escape(request.host())
     return '%s://%s' % (protocol, host)
 
 def get_full_url(request):
 Changes
 =======
 
+version 1.0.2
+-------------
+
+#. Remove use of get_host and str_to_unicode from utils.__init__.py to make it django 1.5 compatible
+
+[Ed Crewe]
+
+version 1.0.1
+-------------
+
+[benoitc]
+
 version 1.0
 -----------
 
 
 setup(
     name = 'django-authopenid',
-    version = '1.0.1',
+    version = '1.0.2',
     description = 'Openid authentification application for Django',
     long_description = \
 """Django authentification application with openid using django auth contrib.