diff options
author | Richard Jones <richard@mechanicalcat.net> | 2013-01-24 10:03:47 +1100 |
---|---|---|
committer | Richard Jones <richard@mechanicalcat.net> | 2013-01-24 10:03:47 +1100 |
commit | 4fcf15e6c6b289944c3cd8d5e195ee3bf9a2a5b4 (patch) | |
tree | f80d76f7a9b15e3312889d6e59fccd60bfa4608c | |
parent | be8a5763b81902418d76f7b3ac020f5ae55827d7 (diff) | |
download | decorator-4fcf15e6c6b289944c3cd8d5e195ee3bf9a2a5b4.tar.gz |
make the test server RSS easier to spot
-rw-r--r-- | templates/packages-rss.xml | 4 | ||||
-rw-r--r-- | templates/rss.xml | 4 | ||||
-rw-r--r-- | webui.py | 3 |
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"> @@ -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') |