author | cavaliet |
Fri, 31 May 2013 16:05:17 +0200 | |
changeset 10 | fb466c64d84c |
permissions | -rw-r--r-- |
10
fb466c64d84c
first commit for aixweb django app (with aix custum metadatacomposer templates)
cavaliet
parents:
diff
changeset
|
1 |
diff -r 7ea87e3229fd5c4eebd0 oauth2/__init__.py |
fb466c64d84c
first commit for aixweb django app (with aix custum metadatacomposer templates)
cavaliet
parents:
diff
changeset
|
2 |
@@ -385,386 +385,391 @@ |
fb466c64d84c
first commit for aixweb django app (with aix custum metadatacomposer templates)
cavaliet
parents:
diff
changeset
|
3 |
url_items = self._split_url_string(query).items() |
fb466c64d84c
first commit for aixweb django app (with aix custum metadatacomposer templates)
cavaliet
parents:
diff
changeset
|
4 |
non_oauth_url_items = list([(k, v) for k, v in url_items if not k.startswith('oauth_')]) |
fb466c64d84c
first commit for aixweb django app (with aix custum metadatacomposer templates)
cavaliet
parents:
diff
changeset
|
5 |
|
fb466c64d84c
first commit for aixweb django app (with aix custum metadatacomposer templates)
cavaliet
parents:
diff
changeset
|
6 |
- items.extend(non_oauth_url_items) |
fb466c64d84c
first commit for aixweb django app (with aix custum metadatacomposer templates)
cavaliet
parents:
diff
changeset
|
7 |
+ for (key,value) in non_oauth_url_items: |
fb466c64d84c
first commit for aixweb django app (with aix custum metadatacomposer templates)
cavaliet
parents:
diff
changeset
|
8 |
+ if (key,value) not in items: |
fb466c64d84c
first commit for aixweb django app (with aix custum metadatacomposer templates)
cavaliet
parents:
diff
changeset
|
9 |
+ items.append((key,value)) |
fb466c64d84c
first commit for aixweb django app (with aix custum metadatacomposer templates)
cavaliet
parents:
diff
changeset
|
10 |
|
fb466c64d84c
first commit for aixweb django app (with aix custum metadatacomposer templates)
cavaliet
parents:
diff
changeset
|
11 |
encoded_str = urllib.urlencode(sorted(items)) |