From 371fdf3659a1c0e132edf7d037e5fee6a14bfb80 Mon Sep 17 00:00:00 2001
From: Christos Trochalakis <yatiohi@ideopolis.gr>
Date: Sat, 5 Apr 2008 18:58:09 +0300
Subject: [PATCH] slug_view
---
django/contrib/syndication/views.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/django/contrib/syndication/views.py b/django/contrib/syndication/views.py
index 423d333..aa90f3c 100644
a
|
b
|
def feed(request, url, feed_dict=None):
|
9 | 9 | slug, param = url.split('/', 1) |
10 | 10 | except ValueError: |
11 | 11 | slug, param = url, '' |
| 12 | return slug_feed(request, slug, param, feed_dict) |
| 13 | |
| 14 | def slug_feed(request, slug, param='', feed_dict=None): |
| 15 | if not feed_dict: |
| 16 | raise Http404, "No feeds are registered." |
12 | 17 | |
13 | 18 | try: |
14 | 19 | f = feed_dict[slug] |