Merge lp:~roignac/gwibber/Bug614742-facebook-auth-error into lp:gwibber

Proposed by Vadim Rutkovsky
Status: Rejected
Rejected by: Robert Bruce Park
Proposed branch: lp:~roignac/gwibber/Bug614742-facebook-auth-error
Merge into: lp:gwibber
Diff against target: 113 lines (+21/-23)
3 files modified
gwibber/lib/gtk/facebook.py (+9/-8)
gwibber/microblog/util/exceptions.py (+1/-2)
po/gwibber.pot (+11/-13)
To merge this branch: bzr merge lp:~roignac/gwibber/Bug614742-facebook-auth-error
Reviewer Review Type Date Requested Status
Robert Bruce Park Disapprove
gwibber-committers Pending
Review via email: mp+36794@code.launchpad.net

Description of the change

This fix shows error message when authorized in Facebook. Also, had to modify generic error message and translation templates.

To post a comment you must log in.
Revision history for this message
Robert Bruce Park (robru) wrote :

Thanks for taking the time to submit this patch, unfortunately Gwibber has gone through extensive changes recently and your patch no longer applies to the latest codebase.

Fortunately, the bug you were attempting to fix is no longer present in the current codebase. Authentication is now handled by Ubuntu Online Accounts, and there are not currently any known issues with Facebook.

Please try out the latest Gwibber, I think you'll be quite pleased with what we've accomplished.

review: Disapprove

Unmerged revisions

869. By Vadim Rutkovsky

Facebook authorization page now shows the error message

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'gwibber/lib/gtk/facebook.py'
--- gwibber/lib/gtk/facebook.py 2010-09-15 07:50:53 +0000
+++ gwibber/lib/gtk/facebook.py 2010-09-27 21:14:03 +0000
@@ -26,7 +26,7 @@
26from gtk import Builder26from gtk import Builder
27import gwibber.microblog27import gwibber.microblog
28from gwibber.microblog import facebook28from gwibber.microblog import facebook
29from gwibber.microblog.util import facelib29from gwibber.microblog.util import facelib, exceptions
30from gwibber.microblog.util.const import *30from gwibber.microblog.util.const import *
31# Try to import * from custom, install custom.py to include packaging 31# Try to import * from custom, install custom.py to include packaging
32# customizations like distro API keys, etc32# customizations like distro API keys, etc
@@ -156,13 +156,14 @@
156 self.dialog.get_object("vbox_save").show()156 self.dialog.get_object("vbox_save").show()
157 elif self.dialog:157 elif self.dialog:
158 self.dialog.get_object("vbox_create").show()158 self.dialog.get_object("vbox_create").show()
159 except:159 self.ui.get_object("vbox1").show()
160 #FIXME: We should do this in the same window160 self.ui.get_object("expander1").show()
161 pass161 except gwibber.microblog.util.facelib.FacebookError as e:
162 web.hide()162 #FIXME: another error should be used
163 self.window.resize(self.win_w, self.win_h)163 raise exceptions.GwibberServiceError("authentication", service = "Facebook", message = str(e))
164 self.ui.get_object("vbox1").show()164 finally:
165 self.ui.get_object("expander1").show()165 web.hide()
166 self.window.resize(self.win_w, self.win_h)
166167
167 if title.get_title() == "Failure":168 if title.get_title() == "Failure":
168 gtk.gdk.threads_enter()169 gtk.gdk.threads_enter()
169170
=== modified file 'gwibber/microblog/util/exceptions.py'
--- gwibber/microblog/util/exceptions.py 2010-09-09 23:05:31 +0000
+++ gwibber/microblog/util/exceptions.py 2010-09-27 21:14:03 +0000
@@ -33,10 +33,9 @@
33 else:33 else:
34 log.logger.error("%s failure: %s:%s - %s", kind, service, username, message)34 log.logger.error("%s failure: %s:%s - %s", kind, service, username, message)
3535
36 display_message = _("There was an %(kind)s failure from %(service)s for account %(account)s, error was %(error)s") % {36 display_message = _("There was an %(kind)s failure from %(service)s, error was %(error)s") % {
37 "kind": kind, 37 "kind": kind,
38 "service": service, 38 "service": service,
39 "account": username,
40 "error": message39 "error": message
41 }40 }
42 title = _("Gwibber")41 title = _("Gwibber")
4342
=== modified file 'po/gwibber.pot'
--- po/gwibber.pot 2010-09-15 07:50:53 +0000
+++ po/gwibber.pot 2010-09-27 21:14:03 +0000
@@ -8,7 +8,7 @@
8msgstr ""8msgstr ""
9"Project-Id-Version: PACKAGE VERSION\n"9"Project-Id-Version: PACKAGE VERSION\n"
10"Report-Msgid-Bugs-To: \n"10"Report-Msgid-Bugs-To: \n"
11"POT-Creation-Date: 2010-09-15 03:49-0400\n"11"POT-Creation-Date: 2010-09-28 00:09+0300\n"
12"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"12"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"13"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14"Language-Team: LANGUAGE <LL@li.org>\n"14"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -18,7 +18,7 @@
18"Content-Transfer-Encoding: 8bit\n"18"Content-Transfer-Encoding: 8bit\n"
19"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"19"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
2020
21#: ../gwibber.desktop.in.h:1 ../gwibber/microblog/util/exceptions.py:4221#: ../gwibber.desktop.in.h:1 ../gwibber/microblog/util/exceptions.py:41
22msgid "Gwibber"22msgid "Gwibber"
23msgstr ""23msgstr ""
2424
@@ -240,32 +240,30 @@
240msgid "%s has been authorized by Facebook"240msgid "%s has been authorized by Facebook"
241msgstr ""241msgstr ""
242242
243#: ../gwibber/lib/gtk/facebook.py:170243#: ../gwibber/lib/gtk/facebook.py:171
244msgid "Facebook authorization failed. Please try again."244msgid "Facebook authorization failed. Please try again."
245msgstr ""245msgstr ""
246246
247#: ../gwibber/microblog/util/exceptions.py:36247#: ../gwibber/microblog/util/exceptions.py:36
248#, python-format248#, python-format
249msgid ""249msgid "There was an %(kind)s failure from %(service)s, error was %(error)s"
250"There was an %(kind)s failure from %(service)s for account %(account)s, "
251"error was %(error)s"
252msgstr ""250msgstr ""
253251
254#: ../gwibber/microblog/util/exceptions.py:45252#: ../gwibber/microblog/util/exceptions.py:44
255#, python-format253#, python-format
256msgid "Authentication error from %(service)s for account %(account)s"254msgid "Authentication error from %(service)s for account %(account)s"
257msgstr ""255msgstr ""
258256
259#: ../gwibber/microblog/util/exceptions.py:49257#: ../gwibber/microblog/util/exceptions.py:48
260msgid "Gwibber Authentication Error"258msgid "Gwibber Authentication Error"
261msgstr ""259msgstr ""
262260
261#: ../gwibber/microblog/util/exceptions.py:51
262#, python-format
263msgid "There was a network error communicating with %(message)s"
264msgstr ""
265
263#: ../gwibber/microblog/util/exceptions.py:52266#: ../gwibber/microblog/util/exceptions.py:52
264#, python-format
265msgid "There was a network error communicating with %(message)s"
266msgstr ""
267
268#: ../gwibber/microblog/util/exceptions.py:53
269msgid "Gwibber Network Error"267msgid "Gwibber Network Error"
270msgstr ""268msgstr ""
271269