Code

Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#498 closed (fixed)

Atom support, not just RSS

Reported by: Manuzhai Owned by: adrian
Component: contrib.syndication Version:
Severity: normal Keywords:
Cc: alastair@… Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

  • There should be templates for easy Atom support.
  • RSS support should may be be renamed to syndication or something?

Attachments (1)

feedgenerator.py (10.7 KB) - added by alastair@… 9 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 9 years ago by alastair@…

  • Cc alastair@… added

Here's an attempt to do RSS 2.0 and Atom 1.0 in the feedgenerator style. It's a little different because I like the ElementTree syntax better than xml.sax. So this adds an extra dependency on ElementTree:

Changes from original django feedgenerator:

  • Added author_name, author_email, author_link, categories and subtitle parameters to SyndicationFeed
  • Renamed writeString to write_string.
  • Uses ElementTree rather than SimpleXMLWriter.
  • DefaultRssFeed is renamed to DefaultFeed.
  • DefaultFeed is set to Atom10Feed.

Available at the URL below and also will be attached to this bug.

http://media.liquidx.net/static/patches/feedgenerator.py

Changed 9 years ago by alastair@…

comment:2 Changed 9 years ago by adrian

  • Component changed from Core framework to RSS framework

comment:3 Changed 9 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

(In [1194]) Completely refactored legacy RSS framework to the new django.contrib.syndication package. Also added Atom support, changed the way feeds are registered and added documentation for the whole lot. This is backwards-incompatible, but the RSS framework had not yet been documented, so this should only affect tinkerers and WorldOnline. Fixes #329, #498, #502 and #554. Thanks for various patches/ideas to alastair, ismael, hugo, eric moritz and garthk

comment:4 Changed 9 years ago by 껑유중

<A HREF="http://www.xdx.jp.pn" target="_blank">

(최,대규,모)일.본.뽀.르.노.p.2.p 공,유,중

http://www.xdx.jp.pn

http://www.xdx.jp.pn

삭/제 momo8

</a>

comment:5 Changed 8 years ago by URL

  • Type enhancement deleted

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.