Now that persisting of credentials is in, bringing bag the nag dialog about authorizi...
authorEd Page <epage@Dulcinea.(none)>
Tue, 14 Apr 2009 02:21:25 +0000 (21:21 -0500)
committerEd Page <epage@Dulcinea.(none)>
Tue, 14 Apr 2009 02:21:25 +0000 (21:21 -0500)
src/gtk_rtmilk.py

index 2a0b39b..a235205 100644 (file)
@@ -48,15 +48,14 @@ def get_token(username, apiKey, secret):
 
        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):
-       # @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