summaryrefslogtreecommitdiffstats
path: root/web/macros.py
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2014-01-14 21:58:44 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2014-01-14 21:58:44 (GMT)
commit0f0a943d5429cf8db0f7f6cc9bc2679ed9329901 (patch)
treecad8ae57e93fcfbfc5bc65ed7afb6c6b50bce62a /web/macros.py
parent3be1e22a0077eb714be9c9e1e3793ad080d93e3f (diff)
downloadsite-0f0a943d5429cf8db0f7f6cc9bc2679ed9329901.tar.gz
Rename Nagios Plugins to Monitoring Plugins
This is a first step of replacing the name "Nagios Plugins" with "Monitoring Plugins" where appriopriate. Some news items and FAQ entries are also created or updated. More to come.
Diffstat (limited to 'web/macros.py')
-rw-r--r--web/macros.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/web/macros.py b/web/macros.py
index c950a04..5381ce9 100644
--- a/web/macros.py
+++ b/web/macros.py
@@ -5,7 +5,7 @@ import time
5plugins_release = '1.5' 5plugins_release = '1.5'
6mib_release = '1.0.1' 6mib_release = '1.0.1'
7release_notes = 'news/release-%s.html' % plugins_release.replace('.', '-') 7release_notes = 'news/release-%s.html' % plugins_release.replace('.', '-')
8site_url = 'https://www.nagios-plugins.org/' 8site_url = 'https://www.monitoring-plugins.org/'
9feeds = """These project news articles are also available as an 9feeds = """These project news articles are also available as an
10[RSS feed][rss]{: rel="alternate" type="application/rss+xml" }. Additional 10[RSS feed][rss]{: rel="alternate" type="application/rss+xml" }. Additional
11stuff is posted to [Twitter][twitter], so you might want to [follow us][follow] 11stuff is posted to [Twitter][twitter], so you might want to [follow us][follow]
@@ -32,7 +32,7 @@ _RSS = """<?xml version="1.0" encoding="UTF-8"?>
32 <link>%s</link> 32 <link>%s</link>
33 <description>%s</description> 33 <description>%s</description>
34 <language>en-us</language> 34 <language>en-us</language>
35 <webMaster>webmaster@nagios-plugins.org</webMaster> 35 <webMaster>webmaster@monitoring-plugins.org</webMaster>
36 <pubDate>%s</pubDate> 36 <pubDate>%s</pubDate>
37 <lastBuildDate>%s</lastBuildDate> 37 <lastBuildDate>%s</lastBuildDate>
38 <generator>Poole</generator> 38 <generator>Poole</generator>
@@ -63,9 +63,9 @@ def hook_postconvert_rss():
63 date = email.utils.formatdate(date) 63 date = email.utils.formatdate(date)
64 items.append(_RSS_ITEM % (p.title, link, desc, link, date)) 64 items.append(_RSS_ITEM % (p.title, link, desc, link, date))
65 items = ''.join(items) 65 items = ''.join(items)
66 title = 'Nagios Plugins' 66 title = 'Monitoring Plugins'
67 link = '%s/news/' % site_url.rstrip('/') 67 link = '%s/news/' % site_url.rstrip('/')
68 desc = 'Announcements published by the Nagios Plugins Development Team.' 68 desc = 'Announcements published by the Monitoring Plugins Development Team.'
69 date = email.utils.formatdate() 69 date = email.utils.formatdate()
70 rss = _RSS % (title, link, desc, date, date, items) 70 rss = _RSS % (title, link, desc, date, date, items)
71 fp = open(os.path.join(output, 'rss.xml'), 'w') 71 fp = open(os.path.join(output, 'rss.xml'), 'w')