Feeds as views.

1 view
Skip to first unread message

zellyn

unread,
Apr 24, 2009, 11:21:37 AM4/24/09
to Django developers
[I wasn't sure whether to post this before or after 1.1 dropped, but
decided to post now, since I'm just looking for discussion and
comments.]

Django's contrib.syndication app feels different from normal views,
using a dictionary and dispatching by slug, then finding objects by
splitting the rest of the URL into "bits".

It takes surprisingly few changes to make Feeds respond as normal
views: define the __call__ method on Feed objects.

Here are the changes required (using pastry.se for its diffing
capability): http://pastry.se/46009/#e46010
And here's the output of `svn diff`: http://pastry.se/46016/

Thoughts, comments, suggestions?

Zellyn Hunter

Ben Firshman

unread,
Apr 24, 2009, 1:05:45 PM4/24/09
to django-d...@googlegroups.com

Funny you mention it, I've been working on something identical over
the past few days. It definitely makes sense.

http://github.com/bfirsh/syndication-view/tree/master

I took the backwards incompatible approach, with the intention of
writing a separate Feed class that hacked in the old methods for
backwards compatibility.

Ben

Alex Gaynor

unread,
Apr 24, 2009, 1:12:14 PM4/24/09
to django-d...@googlegroups.com
I like this proposal, however now is a bad time to bring this up.  We are in the final stages of the 1.1 releaese, so we aren't in a position to be considering new features or API changes, can you please bring this up again at the feature selection stage for 1.2?

Alex

--
"I disapprove of what you say, but I will defend to the death your right to say it." --Voltaire
"The people's good is the highest law."--Cicero
Reply all
Reply to author
Forward
0 new messages