server/virtualenv/web/res/patch/oauth2.diff
author durandn
Mon, 03 Aug 2015 14:17:03 +0200
changeset 69 be6fde8f0ef9
parent 3 fc0f3e398166
permissions -rw-r--r--
Implemented timerange for mdplayer and use of it in widget Segment: if enable (option is use_timerange) when clicking a segment user can only read the video on current segment + adapted other widgets that need to detect segment to be able to use this option if it is enable so that segment detection is smoother + adjusted API testing form on iframetesting to use the correct api (form is still hidden by default)

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))