Modify

Opened 18 years ago

Closed 17 years ago

#336 closed enhancement (fixed)

RSS feed for /blog

Reported by: Alec Thomas Owned by: John Hampton
Priority: normal Component: TracBlogPlugin
Severity: trivial Keywords:
Cc: Trac Release: 0.9

Description

You know you want it.

Attachments (3)

tracblog-rss.patch (6.2 KB) - added by mjk@… 18 years ago.
Patch for RSS feed
tracblog-rss-0.2.patch (8.1 KB) - added by mjk@… 18 years ago.
Patch for RSS feed (less ugly version)
tracblog-rss-0.3.patch (1.6 KB) - added by kindlund@… 17 years ago.
fix: RSS <author> fields now properly list email addresses from different blog posters

Download all attachments as: .zip

Change History (9)

comment:1 Changed 18 years ago by John Hampton

Status: newassigned

Why temptest thou me, satan? :)

Yeah, I want it. I'll see if I can whip something up.

Changed 18 years ago by mjk@…

Attachment: tracblog-rss.patch added

Patch for RSS feed

comment:2 Changed 18 years ago by mjk@…

Priority: lowestnormal

Yes, feed for blogs is essential ;-)

With a little help from johann@… and his SimpleBlogPlugin I implemented a simple rss feed.

My code is ugly.

See attachment.

Changed 18 years ago by mjk@…

Attachment: tracblog-rss-0.2.patch added

Patch for RSS feed (less ugly version)

comment:3 Changed 18 years ago by John Hampton

(In [1186]) Refs #336

  • applied RSS patch
  • Added setup.cfg to build

comment:4 Changed 18 years ago by John Hampton

(In [1189]) Refs #336

  • Fix for lack of to_unicode on 0.9. Doesn't break the plugin on 0.10, btu I untested with 0.9.6

comment:5 Changed 17 years ago by kindlund@…

Fixed a bug, where the RSS feed was pulling the first email address found in the trac userbase, rather than the email address of the blog poster. This becomes apparent when you have multiple users posting blog messages. Before, the corresponding RSS XML <author> fields all contained the same email address -- even if each poster set a unique email address.

Specifically, the _user2email(self, user) function didn't actually map a given blog poster's username to their email address -- it simply found the first email address from the userbase.

I've attached tracblog-rss-0.3.patch, which fixes this issue. The email_map code was taken directly from Timeline.py within v0.10 of the main trac codebase. It seems the Timeline.py RSS feed implementation makes a bit more sense.

Changed 17 years ago by kindlund@…

Attachment: tracblog-rss-0.3.patch added

fix: RSS <author> fields now properly list email addresses from different blog posters

comment:6 Changed 17 years ago by John Hampton

Resolution: fixed
Status: assignedclosed

(In [1582])

  • Applied patch for RSS email addresses from kindlund@…, Closes #336
  • Removed reference to addHeadingLinks in new_blog.cs. Closes #786
  • Added code to redirect to the page where posting a new entry was selected. Closes #452
  • Added patch to allow for customizable footer on blog posts from dfaerch. Closes #745

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain John Hampton.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.