From 67e2b653655c02bae7ce01d777c7bc8091d48df0 Mon Sep 17 00:00:00 2001 From: eliott Date: Sun, 30 Dec 2007 10:14:26 -0800 Subject: Removed feeds from devsite --- feeds.py | 35 ----------------------------------- templates/devel/siteindex.html | 33 +-------------------------------- urls.py | 9 --------- 3 files changed, 1 insertion(+), 76 deletions(-) delete mode 100644 feeds.py diff --git a/feeds.py b/feeds.py deleted file mode 100644 index 04399c71..00000000 --- a/feeds.py +++ /dev/null @@ -1,35 +0,0 @@ -from django.contrib.syndication.feeds import Feed -from archweb_dev.packages.models import Package -from archweb_dev.news.models import News -#from datetime import datetime - -class PackageFeed(Feed): - title = 'Recent Package Updates' - link = '/packages/' - description = 'Recent Package Updates' - - def items(self): - return Package.objects.order_by('-last_update')[:10] - - def item_pubdate(self, item): - return item.last_update - - def item_categories(self, item): - return (item.repo.name,item.category.category) - -class NewsFeed(Feed): - title = 'Recent News Updates' - link = '/news/' - description = 'Recent News Updates' - - def items(self): - return News.objects.order_by('-postdate', '-id')[:10] - - def item_pubdate(self, item): - return item.postdate - - def item_author_name(self, item): - return item.author.get_full_name() - -# vim: set ts=4 sw=4 et: - diff --git a/templates/devel/siteindex.html b/templates/devel/siteindex.html index 75097127..a10fcf0e 100644 --- a/templates/devel/siteindex.html +++ b/templates/devel/siteindex.html @@ -1,36 +1,6 @@ {% extends "base.html" %} -{% block head %} - - -{% endblock %} - {% block content_left %} -
-

Welcome to Arch!

-

- You've reached the website for Arch Linux, a lightweight - and flexible linux distribution that tries to Keep It Simple. -

- Currently we have official packages optimized for the i686 and x86-64 - architectures. We complement our official package sets with a - community-operated package repository - that grows in size and quality each and every day. -

- Our strong community is diverse and helpful, and we pride ourselves on - the range of skillsets and uses for Arch that stem from it. Please - check out our forums and - mailing lists - to get your feet wet. Also glance through our wiki - if you want to learn more about Arch. -

- Learn more... -

-
-

-
- RSS Feed -

Latest News

{% for news in news_updates %} @@ -54,8 +24,7 @@
- - + {% for pkg in pkg_updates %} diff --git a/urls.py b/urls.py index 83f603c2..ed6373a5 100644 --- a/urls.py +++ b/urls.py @@ -1,14 +1,8 @@ from django.conf.urls.defaults import * from django.conf import settings from archweb_dev.news.models import News -from archweb_dev.feeds import PackageFeed, NewsFeed from django.views.decorators.cache import cache_page -feeds = { - 'packages': PackageFeed, - 'news': NewsFeed -} - urlpatterns = patterns('', # Dynamic Stuff (r'^packages/flag/(\d+)/$', 'archweb_dev.packages.views.flag'), @@ -45,9 +39,6 @@ urlpatterns = patterns('', (r'^wiki/index/$', 'archweb_dev.wiki.views.index'), (r'^wiki/$', 'archweb_dev.wiki.views.main'), -# Feeds - (r'^feeds/(?P.*)/$', 'django.contrib.syndication.views.feed', {'feed_dict': feeds}), - # (mostly) Static Pages (r'^$', 'archweb_dev.devel.views.siteindex'), (r'^about/$', 'archweb_dev.devel.views.about'), -- cgit v1.2.3-55-g3dc8

Recent Updates

RSS Feed

Recent Updates