Skip to content
Snippets Groups Projects
Commit f4101fbb authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

fix traceback with atom pubsub. Fixes #4763

parent 9d3cc641
No related branches found
No related tags found
No related merge requests found
......@@ -64,7 +64,7 @@ class Entry(xmpp.Node, object):
xmpp.Node.__init__(self, 'entry', node=node)
def __repr__(self):
return '<Atom:Entry object of id="%r">' % self.id
return '<Atom:Entry object of id="%r">' % 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 '<Atom0.3:Entry object of id="%r">' % self.id
return '<Atom0.3:Entry object of id="%r">' % self.getAttr('id')
def get_feed_title(self):
''' Returns title of feed, where the entry was created. The result is the feed name
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment