virtualenv/web/res/patch/oauth2.diff
author grandjoncl
Thu, 11 Oct 2012 16:39:05 +0200
changeset 842 ca38abd140b3
parent 22 03d02cf0bea7
permissions -rw-r--r--
Corrections of the code for the embed popup. Functions are now in the embed_popup.js With chrome the player used to play the video even when it wasn't supposed to be displayed and kept playing when we hid the player. When we changed between div and iframe the player started even when it was suppose to be hidden. It's now solved.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
22
03d02cf0bea7 Added text API, test Clients and Testcases
wakimd
parents:
diff changeset
     1
diff -r 7ea87e3229fd5c4eebd0 oauth2/__init__.py
03d02cf0bea7 Added text API, test Clients and Testcases
wakimd
parents:
diff changeset
     2
@@ -385,386 +385,391 @@
03d02cf0bea7 Added text API, test Clients and Testcases
wakimd
parents:
diff changeset
     3
        url_items = self._split_url_string(query).items()
03d02cf0bea7 Added text API, test Clients and Testcases
wakimd
parents:
diff changeset
     4
        non_oauth_url_items = list([(k, v) for k, v in url_items  if not k.startswith('oauth_')])
03d02cf0bea7 Added text API, test Clients and Testcases
wakimd
parents:
diff changeset
     5
        
03d02cf0bea7 Added text API, test Clients and Testcases
wakimd
parents:
diff changeset
     6
-       items.extend(non_oauth_url_items)
03d02cf0bea7 Added text API, test Clients and Testcases
wakimd
parents:
diff changeset
     7
+       for (key,value) in non_oauth_url_items:
03d02cf0bea7 Added text API, test Clients and Testcases
wakimd
parents:
diff changeset
     8
+           if (key,value) not in items:
03d02cf0bea7 Added text API, test Clients and Testcases
wakimd
parents:
diff changeset
     9
+               items.append((key,value))
03d02cf0bea7 Added text API, test Clients and Testcases
wakimd
parents:
diff changeset
    10
    
03d02cf0bea7 Added text API, test Clients and Testcases
wakimd
parents:
diff changeset
    11
        encoded_str = urllib.urlencode(sorted(items))