virtualenv/web/res/patch/oauth2.diff
author cavaliet
Thu, 14 Apr 2011 17:39:36 +0200
changeset 57 795f01224eef
parent 22 03d02cf0bea7
permissions -rw-r--r--
changes after social_auth integration, new way to create the virtualenv and update django to 1.3. It means remove jogging, change openid_consumer to django-openid-consumer, set the good lxml version for windows.

diff -r 7ea87e3229fd5c4eebd0 oauth2/__init__.py
@@ -385,386 +385,391 @@
        url_items = self._split_url_string(query).items()
        non_oauth_url_items = list([(k, v) for k, v in url_items  if not k.startswith('oauth_')])
        
-       items.extend(non_oauth_url_items)
+       for (key,value) in non_oauth_url_items:
+           if (key,value) not in items:
+               items.append((key,value))
    
        encoded_str = urllib.urlencode(sorted(items))