summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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