virtualenv/web/res/patch/oauth2.diff
author cavaliet
Tue, 04 Mar 2014 14:48:25 +0100
changeset 7 4681446b722d
parent 2 bafbf72652b9
permissions -rwxr-xr-x
management command first step
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
bafbf72652b9 virtualenv first commit and structure for spel app
cavaliet
parents:
diff changeset
     1
diff -r 7ea87e3229fd5c4eebd0 oauth2/__init__.py
bafbf72652b9 virtualenv first commit and structure for spel app
cavaliet
parents:
diff changeset
     2
@@ -385,386 +385,391 @@
bafbf72652b9 virtualenv first commit and structure for spel app
cavaliet
parents:
diff changeset
     3
        url_items = self._split_url_string(query).items()
bafbf72652b9 virtualenv first commit and structure for spel app
cavaliet
parents:
diff changeset
     4
        non_oauth_url_items = list([(k, v) for k, v in url_items  if not k.startswith('oauth_')])
bafbf72652b9 virtualenv first commit and structure for spel app
cavaliet
parents:
diff changeset
     5
        
bafbf72652b9 virtualenv first commit and structure for spel app
cavaliet
parents:
diff changeset
     6
-       items.extend(non_oauth_url_items)
bafbf72652b9 virtualenv first commit and structure for spel app
cavaliet
parents:
diff changeset
     7
+       for (key,value) in non_oauth_url_items:
bafbf72652b9 virtualenv first commit and structure for spel app
cavaliet
parents:
diff changeset
     8
+           if (key,value) not in items:
bafbf72652b9 virtualenv first commit and structure for spel app
cavaliet
parents:
diff changeset
     9
+               items.append((key,value))
bafbf72652b9 virtualenv first commit and structure for spel app
cavaliet
parents:
diff changeset
    10
    
bafbf72652b9 virtualenv first commit and structure for spel app
cavaliet
parents:
diff changeset
    11
        encoded_str = urllib.urlencode(sorted(items))