From 34d6ece8a454e5d1d027ed106ba039a0a88db36d Mon Sep 17 00:00:00 2001
From: bwarsaw <>
Date: Sun, 17 Sep 2006 18:16:07 +0000
Subject: Copy the mm21 admin directory out of the mm21 branch. We'll svn
external the latter to get that back into the release, but I really don't
want to maintain multiple copies of the web pages.
---
admin/www/MMGenerator.py | 112 -----------------------------------------------
1 file changed, 112 deletions(-)
delete mode 100644 admin/www/MMGenerator.py
(limited to 'admin/www/MMGenerator.py')
diff --git a/admin/www/MMGenerator.py b/admin/www/MMGenerator.py
deleted file mode 100644
index 75637a8e..00000000
--- a/admin/www/MMGenerator.py
+++ /dev/null
@@ -1,112 +0,0 @@
-"""Generator for the Mailman on-line documentation.
-
-Requires ht2html.py, available from http://ht2html.sourceforge.net
-"""
-
-import os
-import time
-
-from Skeleton import Skeleton
-from Sidebar import Sidebar, BLANKCELL
-from Banner import Banner
-from HTParser import HTParser
-from LinkFixer import LinkFixer
-
-
-
-sitelinks = [
- # Row 1
- ('%(rootdir)s/index.html', 'Home'),
- ('%(rootdir)s/security.html', 'Security'),
- ('%(rootdir)s/docs.html', 'Documentation'),
- ('%(rootdir)s/lists.html', 'Mailing Lists'),
- ('http://wiki.list.org/x/DQ', 'Community'),
- ('%(rootdir)s/help.html', 'Help'),
- ('%(rootdir)s/download.html', 'Download'),
- ('%(rootdir)s/devs.html', 'Developers'),
- ]
-
-
-
-class MMGenerator(Skeleton, Sidebar, Banner):
- def __init__(self, file, rootdir, relthis):
- self.__body = None
- root, ext = os.path.splitext(file)
- html = root + '.html'
- p = self.__parser = HTParser(file, 'mailman-users@python.org')
- f = self.__linkfixer = LinkFixer(html, rootdir, relthis)
- p.process_sidebar()
- p.sidebar.append(BLANKCELL)
- # massage our links
- self.__d = {'rootdir': rootdir}
- self.__linkfixer.massage(p.sidebar, self.__d)
- # tweak
- p.sidebar.append((None,
- '''
'''
- % self.__d))
- p.sidebar.append(BLANKCELL)
- thisyear = time.localtime()[0]
- copyright = self.__parser.get('copyright', '1998-%s' % thisyear)
- p.sidebar.append((None, '© ' + copyright + """
-Free Software Foundation, Inc. Verbatim copying and distribution of this
-entire article is permitted in any medium, provided this notice is preserved.
-"""))
- Sidebar.__init__(self, p.sidebar)
- #
- # fix up our site links, no relthis because the site links are
- # relative to the root of my web pages
- #
- sitelink_fixer = LinkFixer(f.myurl(), rootdir)
- sitelink_fixer.massage(sitelinks, self.__d, aboves=1)
- Banner.__init__(self, sitelinks, cols=4)
- # kludge!
-## for i in range(len(p.sidebar)-1, -1, -1):
-## if p.sidebar[i] == 'Email Us':
-## p.sidebar[i] = 'Email me'
-## break
-
- def get_corner(self):
- rootdir = self.__linkfixer.rootdir()
- return '''
-