summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreliott <eliott@cactuswax.net>2007-12-30 10:14:26 -0800
committereliott <eliott@cactuswax.net>2007-12-30 10:14:26 -0800
commit67e2b653655c02bae7ce01d777c7bc8091d48df0 (patch)
tree18f0f35dc7235cc31a00fc095064e058f528b731
parent8fcdf0c2cde1c3cff98be4572a0e9e3a1d910901 (diff)
Removed feeds from devsite
-rw-r--r--feeds.py35
-rw-r--r--templates/devel/siteindex.html33
-rw-r--r--urls.py9
3 files changed, 1 insertions, 76 deletions
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 %}
-<link rel="alternate" type="application/rss+xml" title="Arch Linux News Updates" href="/feeds/news/" />
-<link rel="alternate" type="application/rss+xml" title="Arch Linux Package Updates" href="/feeds/packages/" />
-{% endblock %}
-
{% block content_left %}
- <div id="about" class="box">
- <h2>Welcome to Arch!</h2>
- <p>
- You've reached the website for <strong>Arch Linux</strong>, a lightweight
- and flexible linux distribution that tries to Keep It Simple.
- </p><p>
- Currently we have official packages optimized for the i686 and x86-64
- architectures. We complement our official package sets with a
- <a href="http://aur.archlinux.org">community-operated package repository</a>
- that grows in size and quality each and every day.
- </p><p>
- 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 <a href="http://bbs.archlinux.org">forums</a> and
- <a href="http://www.archlinux.org/mailman/listinfo/">mailing lists</a>
- to get your feet wet. Also glance through our <a href="http://wiki.archlinux.org">wiki</a>
- if you want to learn more about Arch.
- </p><p style="text-align: right">
- <a href="/about/"><span style="font-size:x-small">Learn more...</span></a>
- </p>
- </div>
- <br /><br />
- <div style="float:right;position:relative;bottom:-25px">
- <a href="/feeds/news/"><img src="/media/rss.png" alt="RSS Feed" /></a>
- </div>
<h2 class="title">Latest News</h2>
<div>
{% for news in news_updates %}
@@ -54,8 +24,7 @@
<div id="updates">
<table width="100%">
<tr>
- <td><h3>Recent Updates</h3></td>
- <td style="vertical-align:top;text-align:right"><a href="/feeds/packages/"><img src="/media/rss.png" alt="RSS Feed" /></a></td>
+ <td colspan="2"><h3>Recent Updates</h3></td>
</tr>
{% for pkg in pkg_updates %}
<tr>
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<url>.*)/$', 'django.contrib.syndication.views.feed', {'feed_dict': feeds}),
-
# (mostly) Static Pages
(r'^$', 'archweb_dev.devel.views.siteindex'),
(r'^about/$', 'archweb_dev.devel.views.about'),