summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Jones <richard@mechanicalcat.net>2013-01-24 10:03:47 +1100
committerRichard Jones <richard@mechanicalcat.net>2013-01-24 10:03:47 +1100
commit4fcf15e6c6b289944c3cd8d5e195ee3bf9a2a5b4 (patch)
treef80d76f7a9b15e3312889d6e59fccd60bfa4608c
parentbe8a5763b81902418d76f7b3ac020f5ae55827d7 (diff)
downloaddecorator-4fcf15e6c6b289944c3cd8d5e195ee3bf9a2a5b4.tar.gz
make the test server RSS easier to spot
-rw-r--r--templates/packages-rss.xml4
-rw-r--r--templates/rss.xml4
-rw-r--r--webui.py3
3 files changed, 7 insertions, 4 deletions
diff --git a/templates/packages-rss.xml b/templates/packages-rss.xml
index 2be1995..aa59d5a 100644
--- a/templates/packages-rss.xml
+++ b/templates/packages-rss.xml
@@ -4,9 +4,9 @@
xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:metal="http://xml.zope.org/namespaces/metal">
<channel>
- <title>PyPI Newest Packages</title>
+ <title><tal:x tal:replace="test" />PyPI Newest Packages</title>
<link tal:content="string:${app/url_machine}${app/url_path}" />
- <description>Newest packages registered at the Python Package Index</description>
+ <description>Newest packages registered at the <tal:x tal:replace="test" />Python Package Index</description>
<language>en</language>
<item tal:repeat="release app/store/latest_packages">
diff --git a/templates/rss.xml b/templates/rss.xml
index 7581110..e66ef2c 100644
--- a/templates/rss.xml
+++ b/templates/rss.xml
@@ -4,9 +4,9 @@
xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:metal="http://xml.zope.org/namespaces/metal">
<channel>
- <title>PyPI recent updates</title>
+ <title><tal:x tal:replace="test" />PyPI recent updates</title>
<link tal:content="string:${app/url_machine}${app/url_path}" />
- <description>Updates to the Python Package Index</description>
+ <description>Updates to the <tal:x tal:replace="test" />Python Package Index</description>
<language>en</language>
<item tal:repeat="release app/store/latest_releases">
diff --git a/webui.py b/webui.py
index d3d8e60..df39407 100644
--- a/webui.py
+++ b/webui.py
@@ -793,6 +793,9 @@ class WebUI:
def rss_regen(self):
context = {}
context['app'] = self
+ context['test'] = ''
+ if 'testpypi' in self.config.url:
+ context['test'] = 'Test '
# generate the releases RSS
template_dir = os.path.join(os.path.dirname(__file__), 'templates')