projects
/
doneit
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3eafbb2
)
Now that persisting of credentials is in, bringing bag the nag dialog about authorizi...
author
Ed Page
<epage@Dulcinea.(none)>
Tue, 14 Apr 2009 02:21:25 +0000
(21:21 -0500)
committer
Ed Page
<epage@Dulcinea.(none)>
Tue, 14 Apr 2009 02:21:25 +0000
(21:21 -0500)
src/gtk_rtmilk.py
patch
|
blob
|
history
diff --git
a/src/gtk_rtmilk.py
b/src/gtk_rtmilk.py
index
2a0b39b
..
a235205
100644
(file)
--- a/
src/gtk_rtmilk.py
+++ b/
src/gtk_rtmilk.py
@@
-48,15
+48,14
@@
def get_token(username, apiKey, secret):
authURL = rtm.getAuthURL()
webbrowser.open(authURL)
authURL = rtm.getAuthURL()
webbrowser.open(authURL)
- # mb = gtk_toolbox.MessageBox2("You need to authorize DoneIt with\nRemember The Milk.\nClick OK after you authorize.")
- # mb.run()
+ mb = gtk_toolbox.MessageBox2("You need to authorize DoneIt with\nRemember The Milk.\nClick OK after you authorize.")
+ mb.run()
token = rtm.getToken()
return token
def get_credentials(credentialsDialog):
token = rtm.getToken()
return token
def get_credentials(credentialsDialog):
- # @todo Figure out storage of credentials
username, password = credentialsDialog.request_credentials()
token = get_token(username, rtmilk.RtMilkManager.API_KEY, rtmilk.RtMilkManager.SECRET)
return username, password, token
username, password = credentialsDialog.request_credentials()
token = get_token(username, rtmilk.RtMilkManager.API_KEY, rtmilk.RtMilkManager.SECRET)
return username, password, token