diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2009-07-10 19:14:09 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2009-07-10 19:14:09 -0400 |
commit | 5b45e526c74faf55110ff0afdcba19797d7e0f4d (patch) | |
tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /forum/feed.py | |
parent | bb801f2bbd9f26bebca846b71e8947a1951f86a5 (diff) | |
download | askbot-5b45e526c74faf55110ff0afdcba19797d7e0f4d.tar.gz askbot-5b45e526c74faf55110ff0afdcba19797d7e0f4d.tar.bz2 askbot-5b45e526c74faf55110ff0afdcba19797d7e0f4d.zip |
deleted all
Diffstat (limited to 'forum/feed.py')
-rw-r--r-- | forum/feed.py | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/forum/feed.py b/forum/feed.py deleted file mode 100644 index a4218630..00000000 --- a/forum/feed.py +++ /dev/null @@ -1,43 +0,0 @@ -#!/usr/bin/env python
-#encoding:utf-8
-#-------------------------------------------------------------------------------
-# Name: Syndication feed class for subsribtion
-# Purpose:
-#
-# Author: Mike
-#
-# Created: 29/01/2009
-# Copyright: (c) CNPROG.COM 2009
-# Licence: GPL V2
-#-------------------------------------------------------------------------------
-from django.contrib.syndication.feeds import Feed, FeedDoesNotExist
-from django.utils.translation import ugettext as _
-from models import Question
-class RssLastestQuestionsFeed(Feed):
- title = _('site title') + _(' - ') + _('site slogan') + _(' - ')+ _('latest questions')
- #EDIT!!!
- link = 'http://where.com/questions/'
- description = _('meta site content')
- #ttl = 10
- copyright = _('copyright message')
-
- def item_link(self, item):
- return '/questions/%s/' % item.id
-
- def item_author_name(self, item):
- return item.author.username
-
- def item_author_link(self, item):
- return item.author.get_profile_url()
-
- def item_pubdate(self, item):
- return item.added_at
-
- def items(self, item):
- return Question.objects.filter(deleted=False).order_by('-added_at')[:30]
-
-def main():
- pass
-
-if __name__ == '__main__':
- main()
|