[gnome-blog] Bug 151291 - Make Blogger.com use Atom API rather than BloggerAPI
- From: Olav Vitters <ovitters src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-blog] Bug 151291 - Make Blogger.com use Atom API rather than BloggerAPI
- Date: Wed, 4 Nov 2009 10:14:20 +0000 (UTC)
commit ca10747e8180f9927594fa24861b9581da2b17f0
Author: Richard Schwarting <aquarichy gmail com>
Date: Wed Nov 4 11:13:48 2009 +0100
Bug 151291 - Make Blogger.com use Atom API rather than BloggerAPI
Patch by Richard Schwarting <aquarichy gmail com>
blog.py | 1 +
blogger_prefs.py | 10 +++++-----
protocols/Makefile.am | 1 +
3 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/blog.py b/blog.py
index 448e725..05fb211 100644
--- a/blog.py
+++ b/blog.py
@@ -12,6 +12,7 @@ def getBlogList (gconf_prefix):
try:
return blog_backend.getBlogList(username, password, url, client, gconf_prefix)
except AttributeError, e:
+ print "Error retrieving list of blogs: %s" % e.message
raise FeatureNotSupported("getBlogList")
diff --git a/blogger_prefs.py b/blogger_prefs.py
index 8fb2425..c466eed 100644
--- a/blogger_prefs.py
+++ b/blogger_prefs.py
@@ -49,7 +49,7 @@ class BloggerPrefs(gtk.Dialog):
self.blogProtocolMenu = gconf_widgets.OptionMenu(gconf_prefix + "/blog_protocol")
- self.blogProtocolMenu.setStringValuePairs([("BloggerAPI", "bloggerAPI"),
+ self.blogProtocolMenu.setStringValuePairs([("BloggerAPI", "atomBloggerAPI"),
("Advogato", "advogato"),
("LiveJournal", "livejournal"),
("MetaWeblog", "MetaWeblog")])
@@ -136,10 +136,10 @@ class BloggerPrefs(gtk.Dialog):
protocol = "MetaWeblog"
url_description = _("XML-RPC URL:")
elif blog_type == "blogger.com":
- url = "http://www.blogger.com/api/RPC2"
+ url = "http://code.blogger.com/"
url_ending = ""
- protocol = "bloggerAPI"
- url_description = _("XML-RPC URL:")
+ protocol = "atomBloggerAPI"
+ url_description = _("ATOM-based")
elif blog_type == "advogato.org":
url = "http://www.advogato.org/XMLRPC"
url_ending = ""
@@ -188,7 +188,7 @@ class BloggerPrefs(gtk.Dialog):
def _onLookupBlogsButton (self, button):
client = gconf.client_get_default()
-
+
blog_id_pairs = blog.getBlogList(gconf_prefix)
self.blogMenu.setStringValuePairs(blog_id_pairs)
diff --git a/protocols/Makefile.am b/protocols/Makefile.am
index a3ad399..e5254d5 100644
--- a/protocols/Makefile.am
+++ b/protocols/Makefile.am
@@ -3,6 +3,7 @@ NULL=
gnomeblogdir = $(pythondir)/gnomeblog
gnomeblog_PYTHON = \
+ atomBloggerAPI.py \
bloggerAPI.py \
MetaWeblog.py \
advogato.py \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]