fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
minor cleanup
[redakcja.git]
/
apps
/
apiclient
/
views.py
diff --git
a/apps/apiclient/views.py
b/apps/apiclient/views.py
index
88f4b49
..
0dbaf5a
100644
(file)
--- a/
apps/apiclient/views.py
+++ b/
apps/apiclient/views.py
@@
-22,7
+22,7
@@
def oauth(request):
raise Exception("Invalid response %s." % resp['status'])
request_token = dict(urlparse.parse_qsl(content))
raise Exception("Invalid response %s." % resp['status'])
request_token = dict(urlparse.parse_qsl(content))
-
+
conn = OAuthConnection.get(request.user)
# this might reset existing auth!
conn.access = False
conn = OAuthConnection.get(request.user)
# this might reset existing auth!
conn.access = False
@@
-31,7
+31,7
@@
def oauth(request):
conn.save()
url = "%s?oauth_token=%s&oauth_callback=%s" % (
conn.save()
url = "%s?oauth_token=%s&oauth_callback=%s" % (
- WL_AUTHORIZE_URL,
+ WL_AUTHORIZE_URL,
request_token['oauth_token'],
request.build_absolute_uri(reverse("apiclient_oauth_callback")),
)
request_token['oauth_token'],
request.build_absolute_uri(reverse("apiclient_oauth_callback")),
)