From 006dc54c7b3600de89626e32bb4e60168944bec4 Mon Sep 17 00:00:00 2001 From: Raymond Yee Date: Mon, 8 Aug 2016 17:28:27 -0700 Subject: [PATCH 1/2] remove extra pyasn dependency --- requirements_versioned.pip | 1 - 1 file changed, 1 deletion(-) diff --git a/requirements_versioned.pip b/requirements_versioned.pip index 5a9391ab..e2ee4b7b 100644 --- a/requirements_versioned.pip +++ b/requirements_versioned.pip @@ -60,7 +60,6 @@ oauth2==1.5.211 oauthlib==1.1.2 paramiko==1.14.1 postmonkey==1.0b -pyasn1==0.1.4 pycrypto==2.6 pymarc==3.0.2 pyparsing==2.0.3 From 205af6876d9c35d9002f7a40cbd501b3110bd62a Mon Sep 17 00:00:00 2001 From: eric Date: Thu, 25 Aug 2016 16:02:54 -0400 Subject: [PATCH 2/2] fix unicode unglueitar --- core/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/models.py b/core/models.py index 865784d6..19a0e73e 100755 --- a/core/models.py +++ b/core/models.py @@ -2372,7 +2372,7 @@ class UserProfile(models.Model): def unglueitar(self): # construct the url - gravatar_url = "https://www.gravatar.com/avatar/" + hashlib.md5(self.user.username + '@unglue.it').hexdigest() + "?" + gravatar_url = "https://www.gravatar.com/avatar/" + hashlib.md5(urllib.quote_plus(self.user.username.encode('utf-8')) + '@unglue.it').hexdigest() + "?" gravatar_url += urllib.urlencode({'d':'wavatar', 's':'50'}) return gravatar_url