summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreliott <eliott@cactuswax.net>2007-11-06 20:43:41 -0500
committereliott <eliott@cactuswax.net>2007-11-06 20:43:41 -0500
commit91dff97bfcc535d452ad6817b8743000e3713c03 (patch)
tree5a052bfc08805a6b135df9ff8fca60805f9e7719
parentb358ee966bffc0ad7ef749551dea6bdbc39695be (diff)
Retab.
-rw-r--r--feeds.py32
1 files changed, 16 insertions, 16 deletions
diff --git a/feeds.py b/feeds.py
index 8e16907a..00d12b2a 100644
--- a/feeds.py
+++ b/feeds.py
@@ -4,29 +4,29 @@ from archlinux.news.models import News
#from datetime import datetime
class PackageFeed(Feed):
- title = 'Recent Package Updates'
- link = '/packages/'
- description = 'Recent Package Updates'
+ title = 'Recent Package Updates'
+ link = '/packages/'
+ description = 'Recent Package Updates'
- def items(self):
- return Package.objects.order_by('-last_update')[:10]
+ def items(self):
+ return Package.objects.order_by('-last_update')[:10]
- def item_pubdate(self, item):
- return item.last_update
+ def item_pubdate(self, item):
+ return item.last_update
- def item_categories(self, item):
- return (item.repo.name,item.category.category)
+ 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'
+ title = 'Recent News Updates'
+ link = '/news/'
+ description = 'Recent News Updates'
- def items(self):
- return News.objects.order_by('-postdate', '-id')[:10]
+ def items(self):
+ return News.objects.order_by('-postdate', '-id')[:10]
- def item_pubdate(self, item):
- return item.postdate
+ def item_pubdate(self, item):
+ return item.postdate
def item_author_name(self, item):
return item.author.get_full_name