summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdolfo Fitoria <adolfo.fitoria@gmail.com>2012-01-19 14:25:24 -0300
committerAdolfo Fitoria <adolfo.fitoria@gmail.com>2012-01-19 14:41:31 -0300
commit88976e867b8a76429523a9bedc17e8733637492d (patch)
tree08189106b7cf81e080fa7cd99083a76672684cea
parent92219b5ba61488726fd14c088b31573d0e2f3768 (diff)
downloadaskbot-88976e867b8a76429523a9bedc17e8733637492d.tar.gz
askbot-88976e867b8a76429523a9bedc17e8733637492d.tar.bz2
askbot-88976e867b8a76429523a9bedc17e8733637492d.zip
updated feed class again
-rw-r--r--askbot/feed.py37
1 files changed, 27 insertions, 10 deletions
diff --git a/askbot/feed.py b/askbot/feed.py
index dff8973c..e13a9488 100644
--- a/askbot/feed.py
+++ b/askbot/feed.py
@@ -23,10 +23,16 @@ import itertools
class RssIndividualQuestionFeed(Feed):
"""rss feed class for particular questions
"""
- title = askbot_settings.APP_TITLE + _(' - ')+ _('Individual question feed')
- #link = askbot_settings.APP_URL
- description = askbot_settings.APP_DESCRIPTION
- copyright = askbot_settings.APP_COPYRIGHT
+
+ def title(self):
+ return askbot_settings.APP_TITLE + _(' - ') + \
+ _('Individual question feed')
+
+ def feed_copyright(self):
+ return askbot_settings.APP_COPYRIGHT
+
+ def description(self):
+ return askbot_settings.APP_DESCRIPTION
def get_object(self, bits):
if len(bits) != 1:
@@ -38,6 +44,9 @@ class RssIndividualQuestionFeed(Feed):
"""
return askbot_settings.APP_URL + item.get_absolute_url()
+ def link(self):
+ return askbot_settings.APP_URL
+
def item_pubdate(self, item):
"""get date of creation for the item
"""
@@ -97,17 +106,25 @@ class RssIndividualQuestionFeed(Feed):
class RssLastestQuestionsFeed(Feed):
"""rss feed class for the latest questions
"""
- title = askbot_settings.APP_TITLE + _(' - ')+ _('latest questions')
- #link = askbot_settings.APP_URL
- description = askbot_settings.APP_DESCRIPTION
- #ttl = 10
- copyright = askbot_settings.APP_COPYRIGHT
+
+ def title(self):
+ return askbot_settings.APP_TITLE + _(' - ') + \
+ _('Individual question feed')
+
+ def feed_copyright(self):
+ return askbot_settings.APP_COPYRIGHT
+
+ def description(self):
+ return askbot_settings.APP_DESCRIPTION
def item_link(self, item):
"""get full url to the item
"""
return askbot_settings.APP_URL + item.get_absolute_url()
+ def link(self):
+ return askbot_settings.APP_URL
+
def item_author_name(self, item):
"""get name of author
"""
@@ -130,7 +147,7 @@ class RssLastestQuestionsFeed(Feed):
return askbot_settings.APP_URL + item.get_absolute_url(no_slug = True)
def item_description(self, item):
- """returns the desciption for the item
+ """returns the description for the item
"""
return item.text