aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/journal/feeds.py
diff options
context:
space:
mode:
Diffstat (limited to 'bn_django/journal/feeds.py')
-rw-r--r--bn_django/journal/feeds.py67
1 files changed, 0 insertions, 67 deletions
diff --git a/bn_django/journal/feeds.py b/bn_django/journal/feeds.py
deleted file mode 100644
index 09f1a4e..0000000
--- a/bn_django/journal/feeds.py
+++ /dev/null
@@ -1,67 +0,0 @@
-from django.contrib.syndication.feeds import Feed
-from models import Entry, MicroEntry, LinkArtifact
-
-
-class LatestEntries(Feed):
- title = "bnewbold.net journal entries"
- link = "/journal/entries/"
- description = " "
-
- def items(self):
- return Entry.objects.order_by('-date')[:5]
-
- def item_link(self,item):
- return "http://bnewbold.net%s" % item.get_absolute_url()
-
- def item_author_name(self,item):
- return item.author.username
-
- def item_author_email(self,item):
- return item.author.email
-
- def item_pubdate(self,item):
- return item.date
-
-class LatestMicroEntries(Feed):
- title = "bnewbold.net microentries"
- link = "/journal/microentries/"
- description = "Quick updates"
-
- def items(self):
- return MicroEntry.objects.order_by('-date')[:5]
-
- def item_link(self,item):
- return "http://bnewbold.net%s" % item.get_absolute_url()
-
- def item_author_name(self,item):
- return item.author.username
-
- def item_author_email(self,item):
- return item.author.email
-
- def item_pubdate(self,item):
- return item.date
-
-class LatestLinks(Feed):
- title = "bnewbold.net links"
- link = "/artifacts/links/"
- description = "Links to love"
-
- def items(self):
- return LinkArtifact.objects.order_by('-date')[:5]
-
- def item_link(self,item):
- return item.url
-
- def item_author_name(self,item):
- return item.author.username
-
- def item_author_email(self,item):
- return item.author.email
-
- def item_pubdate(self,item):
- return item.date
-
-feed_list = {'latest_entries':LatestEntries,
- 'latest_microentries':LatestMicroEntries,
- 'latest_links':LatestLinks }