diff options
author | Adolfo Fitoria <adolfo.fitoria@gmail.com> | 2012-01-19 14:25:24 -0300 |
---|---|---|
committer | Adolfo Fitoria <adolfo.fitoria@gmail.com> | 2012-05-08 10:20:08 -0600 |
commit | 7efa08b0d1d50aa48ccaa82314ba2231b56821dc (patch) | |
tree | 5f0836e749a45e09fc35e3b3a2289ac27cd3d401 | |
parent | af4003cc92047339a2b400e7de8b504f3877c6f4 (diff) | |
download | askbot-7efa08b0d1d50aa48ccaa82314ba2231b56821dc.tar.gz askbot-7efa08b0d1d50aa48ccaa82314ba2231b56821dc.tar.bz2 askbot-7efa08b0d1d50aa48ccaa82314ba2231b56821dc.zip |
updated feed class again
-rw-r--r-- | askbot/feed.py | 37 |
1 files changed, 27 insertions, 10 deletions
diff --git a/askbot/feed.py b/askbot/feed.py index 8bc9d1a4..776aad5e 100644 --- a/askbot/feed.py +++ b/askbot/feed.py @@ -25,10 +25,16 @@ from askbot.conf import settings as askbot_settings 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: @@ -40,6 +46,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 """ @@ -87,17 +96,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 """ @@ -120,7 +137,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 |