From: Ed Page Date: Tue, 14 Apr 2009 02:21:25 +0000 (-0500) Subject: Now that persisting of credentials is in, bringing bag the nag dialog about authorizi... X-Git-Url: http://git.maemo.org/git/?p=doneit;a=commitdiff_plain;h=ef472059bbff006d3388d4bf0472f036ac7c609f Now that persisting of credentials is in, bringing bag the nag dialog about authorizing DoneIt --- diff --git a/src/gtk_rtmilk.py b/src/gtk_rtmilk.py index 2a0b39b..a235205 100644 --- 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) - # 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