Django

Code

Ticket #2021 (closed: fixed)

Opened 2 years ago

Last modified 2 years ago

Improved Atom feed

Reported by: ned@nedbatchelder.com Assigned to: adrian
Milestone: Component: Admin interface
Version: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

The Atom feed in feedgenerator creates <link href='...'/> elements with no rel attribute. The Atom spec says this is OK, and should be interepreted as rel='alternate', but Bloglines and Safari don't seem to do it. So feedgenerator should output rel='alternate' to be more explicit.

Patch: in django\utils\feedgenerator.py, at line 220, change this line:

handler.addQuickElement(u"link", u"", {u"href": item['link']})

to:

handler.addQuickElement(u"link", u"", {u"href": item['link'], u"rel": u"alternate"})

Attachments

Change History

05/29/06 20:12:53 changed by adrian

  • status changed from new to closed.
  • resolution set to fixed.

(In [3004]) Fixed #2021 -- Improved Atom feed by outputting rel=alternate. Thanks, Ned Batchelder


Add/Change #2021 (Improved Atom feed)




Change Properties
Action