fix traceback with atom pubsub. Fixes #4763

This commit is contained in:
Yann Leboulanger 2009-02-02 06:43:19 +00:00
parent 9d3cc64197
commit f4101fbb8b
1 changed files with 2 additions and 2 deletions

View File

@ -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