summaryrefslogtreecommitdiff
path: root/feeds.py
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 /feeds.py
parent8fcdf0c2cde1c3cff98be4572a0e9e3a1d910901 (diff)
Removed feeds from devsite
Diffstat (limited to 'feeds.py')
-rw-r--r--feeds.py35
1 files changed, 0 insertions, 35 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:
-