summaryrefslogtreecommitdiff
path: root/feeds.py
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-03-27 10:10:08 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-03-27 10:10:08 -0400
commitb4cf5bbafdda1b8f8fb4f51e6c961ffbbfe992d1 (patch)
treeeb8731a6c56a1c8766d5b6bc3e75ce90cc998db3 /feeds.py
parentdb0519771d3a3a977439f905c281274630e0f607 (diff)
Pull references to Arch Linux in code into BRANDING_ variables in settings
This does not include templates
Diffstat (limited to 'feeds.py')
-rw-r--r--feeds.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/feeds.py b/feeds.py
index ee856f62..9a5e2777 100644
--- a/feeds.py
+++ b/feeds.py
@@ -1,6 +1,7 @@
import hashlib
import pytz
+from django.conf import settings
from django.contrib.sites.models import Site
from django.contrib.syndication.views import Feed
from django.db.models import Q
@@ -68,7 +69,7 @@ class PackageFeed(Feed):
return obj
def title(self, obj):
- s = 'Arch Linux: Recent package updates'
+ s = settings.BRANDING_DISTRONAME+': Recent package updates'
if 'repo' in obj:
s += ' (%s [%s])' % (obj['arch'].name, obj['repo'].name.lower())
elif 'arch' in obj:
@@ -76,7 +77,7 @@ class PackageFeed(Feed):
return s
def description(self, obj):
- s = 'Recently updated packages in the Arch Linux package repositories'
+ s = 'Recently updated packages in the '+settings.BRANDING_DISTRONAME+' package repositories'
if 'arch' in obj:
s += ' for the \'%s\' architecture' % obj['arch'].name.lower()
if not obj['arch'].agnostic:
@@ -117,9 +118,9 @@ def news_last_modified(request, *args, **kwargs):
class NewsFeed(Feed):
feed_type = GuidNotPermalinkFeed
- title = 'Arch Linux: Recent news updates'
+ title = settings.BRANDING_DISTRONAME+': Recent news updates'
link = '/news/'
- description = 'The latest and greatest news from the Arch Linux distribution.'
+ description = 'The latest and greatest news from the '+settings.BRANDING_DISTRONAME+' distribution.'
subtitle = description
title_template = 'feeds/news_title.html'
description_template = 'feeds/news_description.html'