Modify

Opened 8 years ago

Closed 8 years ago

#336 closed enhancement (fixed)

RSS feed for /blog

Reported by: athomas Owned by: pacopablo
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@… 8 years ago.
Patch for RSS feed
tracblog-rss-0.2.patch (8.1 KB) - added by mjk@… 8 years ago.
Patch for RSS feed (less ugly version)
tracblog-rss-0.3.patch (1.6 KB) - added by kindlund@… 8 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 8 years ago by pacopablo

  • Status changed from new to assigned

Why temptest thou me, satan? :)

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

Changed 8 years ago by mjk@…

Patch for RSS feed

comment:2 Changed 8 years ago by mjk@…

  • Priority changed from lowest to normal

Yes, feed for blogs is essential ;-)

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

My code is ugly.

See attachment.

Changed 8 years ago by mjk@…

Patch for RSS feed (less ugly version)

comment:3 Changed 8 years ago by pacopablo

(In [1186]) Refs #336

  • applied RSS patch
  • Added setup.cfg to build

comment:4 Changed 8 years ago by pacopablo

(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 8 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 8 years ago by kindlund@…

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

comment:6 Changed 8 years ago by pacopablo

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

(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

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from pacopablo. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.