git.ithinksw.org
/
philo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Moved all navigation-related code to contrib/navigation. Refactored navigation to...
[philo.git]
/
contrib
/
penfield
/
utils.py
diff --git
a/contrib/penfield/utils.py
b/contrib/penfield/utils.py
index
0386d38
..
43c7c91
100644
(file)
--- a/
contrib/penfield/utils.py
+++ b/
contrib/penfield/utils.py
@@
-87,11
+87,14
@@
class FeedMultiViewMixin(object):
return self.atom_feed(**defaults)
def feed_patterns(self, object_fetcher, page, base_name):
return self.atom_feed(**defaults)
def feed_patterns(self, object_fetcher, page, base_name):
- feed_name = '%s_feed' % base_name
urlpatterns = patterns('',
urlpatterns = patterns('',
- url(r'^%s/$' % self.feed_suffix, self.feed_view(object_fetcher, feed_name), name=feed_name),
url(r'^$', self.page_view(object_fetcher, page), name=base_name)
)
url(r'^$', self.page_view(object_fetcher, page), name=base_name)
)
+ if self.feeds_enabled:
+ feed_name = '%s_feed' % base_name
+ urlpatterns = patterns('',
+ url(r'^%s/$' % self.feed_suffix, self.feed_view(object_fetcher, feed_name), name=feed_name),
+ ) + urlpatterns
return urlpatterns
def add_item(self, feed, obj, kwargs=None):
return urlpatterns
def add_item(self, feed, obj, kwargs=None):