From f4101fbb8b45a9e4f4ec1e59ed32b509d89d0948 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 2 Feb 2009 06:43:19 +0000 Subject: [PATCH] fix traceback with atom pubsub. Fixes #4763 --- src/common/atom.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/atom.py b/src/common/atom.py index 1476cfd44..18122e9d1 100644 --- a/src/common/atom.py +++ b/src/common/atom.py @@ -64,7 +64,7 @@ class Entry(xmpp.Node, object): xmpp.Node.__init__(self, 'entry', node=node) def __repr__(self): - return '' % self.id + return '' % self.getAttr('id') class OldEntry(xmpp.Node, object): ''' Parser for feeds from pubsub.com. They use old Atom 0.3 format with @@ -74,7 +74,7 @@ class OldEntry(xmpp.Node, object): xmpp.Node.__init__(self, 'entry', node=node) def __repr__(self): - return '' % self.id + return '' % self.getAttr('id') def get_feed_title(self): ''' Returns title of feed, where the entry was created. The result is the feed name