~gmb/gwibber/use-dates-for-indexes

« back to all changes in this revision

Viewing changes to gwibber/microblog/rss.py

  • Committer: Greg Grossmeier
  • Date: 2009-02-04 03:46:01 UTC
  • Revision ID: greg.grossmeier@gmail.com-20090204034601-qep6llgp9ycz2jn9
Only set self.url if the data object has a url attribute.  This allows 
the use of more RSS feeds.

* Fixes LP:306309

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
 
49
49
    self.time = support.parse_time(data.updated)
50
50
    self.bgcolor = "message_color"
51
 
    self.url = data.link
 
51
    if hasattr(data, "link"):
 
52
      self.url = data.link
52
53
    self.profile_url = "" # feed.author_detail.href
53
54
    self.title = "%s <br /> <small>By %s</small>" % (data.title, self.sender)
54
55