﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
3608	enable CSS and include Request Objects in RSS framework for complex feeds	ron@…	Adrian Holovaty	"I noticed that for RSS 2.0, and I believe Atom, has support for CSS. Many of the RSS readers I've been using to test my feeds with have very poor defaults for fonts and such and would like to include CSS. Currently I'm stuck using font tags and style attributes, but would love to simplify this with CSS. Here's a sample of the XML of RSS 2.0 with CSS:

{{{
<?xml version=""1.0"" encoding=""utf-8""?>
<?xml-stylesheet type=""text/css"" href=""http://www.example.com/rss.css"" ?>
}}}
----
Now for request objects being passed to the Feed classes. The idea for passing the request object to the Feeds is to have access to the GET variables to make the feeds a bit more dynamic. Two cases that I'm currently dealing with:

1. First a news feed with several different topics[[BR]]
2. An agricultural brokerage site with a listing feed

Both feeds general a large amount of articles and can be very cumbersome to sift through to find the content that the user needs. For the first case I can use the get_object method to reduce the Feed, but if a user would like two or more of the topics, he/she has to subscribe multiple times (trivial but could be improved). As for the second things get a lot more kludgey, especially using the get_object method.

For the second case I was hoping to provide a solution integrated with the search engine where the feed url would include the search engines GET variables (http://www.example.com/listings/rss/?AGE=...&STATUS=...&TYPE=...) to produce custom feeds. I think it would be simple enough to implement this by including one more items method to the feed classes to include one with the request object as the parameter:

{{{
class ExampleFeed(Feed):
    items(request) # The new method
    items(obj)     # The currently implemented methods
    items()
    items = []
}}}

I'm sorry if this should be two separate tickets, already has tickets or implemented in the development versions. I've attempted to make sure I'm not duplicated anything here, but my time is very tight (why I use django ;)). Thanks for the fantastic software!

Ron Wills"		closed	contrib.syndication	0.95		wontfix	RSS CSS		Design decision needed	0	0	0	0	0	0
