From 68793c2e490bf27c9639633044c8edaae77853b5 Mon Sep 17 00:00:00 2001
From: "Bradley M. Kuhn"
Date: Sat, 8 Nov 2014 12:21:10 -0500
Subject: Changes to Mailman Python code for copyleft.org branding.
This does not completely fix the branding issues;
some patches to the templates in /etc/mailman/en/ will next be
required.
---
.etckeeper | 43 ++++++++++++++++-------------------------
mailman/Defaults.py | 2 +-
mailman/htmlformat.py | 51 +++++++++++++++++++++++++++++++++++++++++++++----
3 files changed, 64 insertions(+), 32 deletions(-)
diff --git a/.etckeeper b/.etckeeper
index 1eaaa08..8ddd0b4 100755
--- a/.etckeeper
+++ b/.etckeeper
@@ -698,10 +698,10 @@ maybe chmod 0644 './mailcap'
maybe chmod 0644 './mailcap.order'
maybe chgrp list './mailman'
maybe chmod 0755 './mailman'
-maybe chgrp list './mailman/Defaults.py'
-maybe chmod 0644 './mailman/Defaults.py'
+maybe chmod 0600 './mailman/Defaults.py'
maybe chgrp list './mailman/Defaults.py.~1~'
maybe chmod 0644 './mailman/Defaults.py.~1~'
+maybe chmod 0600 './mailman/Defaults.py.~2~'
maybe chmod 0644 './mailman/apache.conf'
maybe chmod 0755 './mailman/de'
maybe chgrp list './mailman/de/admindbdetails.html'
@@ -809,22 +809,17 @@ maybe chgrp list './mailman/en/approve.txt'
maybe chmod 0644 './mailman/en/approve.txt'
maybe chgrp list './mailman/en/archidxentry.html'
maybe chmod 0644 './mailman/en/archidxentry.html'
-maybe chgrp list './mailman/en/archidxfoot.html'
-maybe chmod 0644 './mailman/en/archidxfoot.html'
-maybe chgrp list './mailman/en/archidxhead.html'
-maybe chmod 0644 './mailman/en/archidxhead.html'
+maybe chmod 0600 './mailman/en/archidxfoot.html'
+maybe chmod 0600 './mailman/en/archidxhead.html'
maybe chgrp list './mailman/en/archlistend.html'
maybe chmod 0644 './mailman/en/archlistend.html'
maybe chgrp list './mailman/en/archliststart.html'
maybe chmod 0644 './mailman/en/archliststart.html'
-maybe chgrp list './mailman/en/archtoc.html'
-maybe chmod 0644 './mailman/en/archtoc.html'
+maybe chmod 0600 './mailman/en/archtoc.html'
maybe chgrp list './mailman/en/archtocentry.html'
maybe chmod 0644 './mailman/en/archtocentry.html'
-maybe chgrp list './mailman/en/archtocnombox.html'
-maybe chmod 0644 './mailman/en/archtocnombox.html'
-maybe chgrp list './mailman/en/article.html'
-maybe chmod 0644 './mailman/en/article.html'
+maybe chmod 0600 './mailman/en/archtocnombox.html'
+maybe chmod 0600 './mailman/en/article.html'
maybe chgrp list './mailman/en/bounce.txt'
maybe chmod 0644 './mailman/en/bounce.txt'
maybe chgrp list './mailman/en/checkdbs.txt'
@@ -835,42 +830,36 @@ maybe chgrp list './mailman/en/cronpass.txt'
maybe chmod 0644 './mailman/en/cronpass.txt'
maybe chgrp list './mailman/en/disabled.txt'
maybe chmod 0644 './mailman/en/disabled.txt'
-maybe chgrp list './mailman/en/emptyarchive.html'
-maybe chmod 0644 './mailman/en/emptyarchive.html'
+maybe chmod 0600 './mailman/en/emptyarchive.html'
maybe chgrp list './mailman/en/headfoot.html'
maybe chmod 0644 './mailman/en/headfoot.html'
maybe chgrp list './mailman/en/help.txt'
maybe chmod 0644 './mailman/en/help.txt'
maybe chgrp list './mailman/en/invite.txt'
maybe chmod 0644 './mailman/en/invite.txt'
-maybe chgrp list './mailman/en/listinfo.html'
-maybe chmod 0644 './mailman/en/listinfo.html'
+maybe chmod 0600 './mailman/en/listinfo.html'
maybe chgrp list './mailman/en/masthead.txt'
maybe chmod 0644 './mailman/en/masthead.txt'
maybe chgrp list './mailman/en/newlist.txt'
maybe chmod 0644 './mailman/en/newlist.txt'
maybe chgrp list './mailman/en/nomoretoday.txt'
maybe chmod 0644 './mailman/en/nomoretoday.txt'
-maybe chgrp list './mailman/en/options.html'
-maybe chmod 0644 './mailman/en/options.html'
+maybe chmod 0600 './mailman/en/options.html'
maybe chgrp list './mailman/en/postack.txt'
maybe chmod 0644 './mailman/en/postack.txt'
maybe chgrp list './mailman/en/postauth.txt'
maybe chmod 0644 './mailman/en/postauth.txt'
maybe chgrp list './mailman/en/postheld.txt'
maybe chmod 0644 './mailman/en/postheld.txt'
-maybe chgrp list './mailman/en/private.html'
-maybe chmod 0644 './mailman/en/private.html'
+maybe chmod 0600 './mailman/en/private.html'
maybe chgrp list './mailman/en/probe.txt'
maybe chmod 0644 './mailman/en/probe.txt'
maybe chgrp list './mailman/en/refuse.txt'
maybe chmod 0644 './mailman/en/refuse.txt'
-maybe chgrp list './mailman/en/roster.html'
-maybe chmod 0644 './mailman/en/roster.html'
+maybe chmod 0600 './mailman/en/roster.html'
maybe chgrp list './mailman/en/subauth.txt'
maybe chmod 0644 './mailman/en/subauth.txt'
-maybe chgrp list './mailman/en/subscribe.html'
-maybe chmod 0644 './mailman/en/subscribe.html'
+maybe chmod 0600 './mailman/en/subscribe.html'
maybe chgrp list './mailman/en/subscribeack.txt'
maybe chmod 0644 './mailman/en/subscribeack.txt'
maybe chgrp list './mailman/en/unsub.txt'
@@ -972,10 +961,10 @@ maybe chgrp list './mailman/es/userpass.txt'
maybe chmod 0644 './mailman/es/userpass.txt'
maybe chgrp list './mailman/es/verify.txt'
maybe chmod 0644 './mailman/es/verify.txt'
-maybe chgrp list './mailman/htmlformat.py'
-maybe chmod 0644 './mailman/htmlformat.py'
+maybe chmod 0600 './mailman/htmlformat.py'
+maybe chmod 0600 './mailman/htmlformat.py.~1~'
maybe chmod 0644 './mailman/leftover'
-maybe chmod 0644 './mailman/mm_cfg.py'
+maybe chmod 0600 './mailman/mm_cfg.py'
maybe chmod 0755 './mailman/postfix-to-mailman.py'
maybe chmod 0755 './mailman/qmail-to-mailman.py'
maybe chmod 0644 './mailname'
diff --git a/mailman/Defaults.py b/mailman/Defaults.py
index 2668310..db73637 100644
--- a/mailman/Defaults.py
+++ b/mailman/Defaults.py
@@ -57,7 +57,7 @@ No = no = Off = off = False
IMAGE_LOGOS = '/doc/mailman/images/'
# The name of the Mailman favicon
-SHORTCUT_ICON = 'mm-icon.png'
+SHORTCUT_ICON = 'copyleft.ico'
# Don't change MAILMAN_URL, unless you want to point it at one of the mirrors.
MAILMAN_URL = 'http://www.gnu.org/software/mailman/index.html'
diff --git a/mailman/htmlformat.py b/mailman/htmlformat.py
index d530989..e129ba9 100644
--- a/mailman/htmlformat.py
+++ b/mailman/htmlformat.py
@@ -309,7 +309,9 @@ class Document(Container):
tab = ' ' * indent
output.extend([tab,
'',
- ''
+ '',
+ ' ',
+ ' '
])
if mm_cfg.IMAGE_LOGOS:
output.append(' ' %
@@ -334,6 +336,37 @@ class Document(Container):
# Language direction
direction = Utils.GetDirection(self.language)
output.append('dir="%s">' % direction)
+ output.append("""
+
+
+
+""")
# Always do this...
output.append(Container.Format(self, indent))
if not self.suppress_head:
@@ -632,7 +665,6 @@ GNU_HEAD = 'gnu-head-tiny.jpg'
def MailmanLogo():
t = Table(border=0, width='100%')
-
version = mm_cfg.VERSION
mmlink = _("Delivered by Mailman")
pylink = _("Python Powered")
@@ -650,7 +682,7 @@ def MailmanLogo():
if mm_cfg.SITE_LINK:
sitelink = logo(mm_cfg.SITE_LOGO, sitelink, "")
- mmlink = Link(MAILMAN_URL, mmlink + _(' version %(version)s'))
+ mmlink = Link(MAILMAN_URL, mmlink + _('version %(version)s'))
pylink = Link(PYTHON_URL, pylink)
gnulink = Link(GNU_URL, gnulink)
links = [mmlink, pylink, gnulink]
@@ -659,7 +691,18 @@ def MailmanLogo():
sitelink = Link(mm_cfg.SITE_URL, sitelink)
links.append(sitelink)
t.AddRow(links)
- return t
+ return("""
+
+
+
+""" % {'MAILMAN': mmlink.Format()})
+# return t
class SelectOptions:
--
1.7.10.4
From 4b6b9e651458acc8f37ddfac5607d39ef78da9b0 Mon Sep 17 00:00:00 2001
From: "Bradley M. Kuhn"
Date: Sat, 8 Nov 2014 12:22:41 -0500
Subject: Rebranding changes for copyleft.org to mailman HTML templates.
---
mailman/en/archidxfoot.html | 15 ++++++++++++--
mailman/en/archidxhead.html | 32 ++++++++++++++++++++++++++++++
mailman/en/archtoc.html | 43 +++++++++++++++++++++++++++++++++++++++++
mailman/en/archtocnombox.html | 15 ++++++++++++++
mailman/en/article.html | 43 +++++++++++++++++++++++++++++++++++++++++
mailman/en/emptyarchive.html | 43 +++++++++++++++++++++++++++++++++++++++++
mailman/en/listinfo.html | 31 ++++++++++++++++++++++++++++-
mailman/en/options.html | 31 +++++++++++++++++++++++++++++
mailman/en/private.html | 43 +++++++++++++++++++++++++++++++++++++++++
mailman/en/roster.html | 31 +++++++++++++++++++++++++++++
mailman/en/subscribe.html | 35 ++++++++++++++++++++++++++++++++-
11 files changed, 358 insertions(+), 4 deletions(-)
diff --git a/mailman/en/archidxfoot.html b/mailman/en/archidxfoot.html
index 0b0a420..e067a37 100644
--- a/mailman/en/archidxfoot.html
+++ b/mailman/en/archidxfoot.html
@@ -15,7 +15,18 @@
- This archive was generated by
- Pipermail %(version)s.
+
+
+
+
diff --git a/mailman/en/archidxhead.html b/mailman/en/archidxhead.html
index 2227dfd..15bf066 100644
--- a/mailman/en/archidxhead.html
+++ b/mailman/en/archidxhead.html
@@ -1,11 +1,43 @@
+
+
+
The %(listname)s %(archive)s Archive by %(archtype)s
%(encoding)s
+
+
+
%(archive)s Archives by %(archtype)s
diff --git a/mailman/en/archtoc.html b/mailman/en/archtoc.html
index 32ecb71..1636319 100644
--- a/mailman/en/archtoc.html
+++ b/mailman/en/archtoc.html
@@ -2,10 +2,41 @@
The %(listname)s Archives
+
+
+
%(meta)s
+
+
The %(listname)s Archives
You can get more information about this list
@@ -16,5 +47,17 @@
%(archive_listing_start)s
%(archive_listing)s
%(archive_listing_end)s
+
+
+
diff --git a/mailman/en/archtocnombox.html b/mailman/en/archtocnombox.html
index e2c5b3d..76729c6 100644
--- a/mailman/en/archtocnombox.html
+++ b/mailman/en/archtocnombox.html
@@ -2,6 +2,9 @@
The %(listname)s Archives
+
+
+
%(meta)s
@@ -14,5 +17,17 @@
%(archive_listing_start)s
%(archive_listing)s
%(archive_listing_end)s
+
+
+
diff --git a/mailman/en/article.html b/mailman/en/article.html
index beb361f..f1627eb 100644
--- a/mailman/en/article.html
+++ b/mailman/en/article.html
@@ -1,6 +1,9 @@
+
+
+
%(title)s
@@ -16,6 +19,34 @@
%(next)s
+
+
%(subject_html)s
%(author_html)s
More information about the %(listname)s
mailing list
+
+
+
diff --git a/mailman/en/emptyarchive.html b/mailman/en/emptyarchive.html
index 8585a32..8ab9f5a 100644
--- a/mailman/en/emptyarchive.html
+++ b/mailman/en/emptyarchive.html
@@ -2,14 +2,57 @@
The %(listname)s Archives
+
+
+
+
+
The %(listname)s Archives
No messages have been posted to this list yet, so the archives are
currently empty. You can get more information
about this list .
+
+
+
diff --git a/mailman/en/listinfo.html b/mailman/en/listinfo.html
index f02b170..e02c0c9 100644
--- a/mailman/en/listinfo.html
+++ b/mailman/en/listinfo.html
@@ -3,10 +3,39 @@
Info Page
-
+
+
+
+
+
+
diff --git a/mailman/en/options.html b/mailman/en/options.html
index 8213b1f..eab207d 100644
--- a/mailman/en/options.html
+++ b/mailman/en/options.html
@@ -3,8 +3,39 @@
membership configuration for
+
+
+
+
+
+
diff --git a/mailman/en/private.html b/mailman/en/private.html
index fa7bfed..9a5ac0c 100644
--- a/mailman/en/private.html
+++ b/mailman/en/private.html
@@ -2,8 +2,39 @@
%(realname)s Private Archives Authentication
+
+
+
+
+
+
+
+
+
diff --git a/mailman/en/roster.html b/mailman/en/roster.html
index be3d1c8..bfad45e 100644
--- a/mailman/en/roster.html
+++ b/mailman/en/roster.html
@@ -2,9 +2,40 @@
Subscribers
+
+
+
+
+
+
diff --git a/mailman/en/subscribe.html b/mailman/en/subscribe.html
index 197e636..ce0cf7c 100644
--- a/mailman/en/subscribe.html
+++ b/mailman/en/subscribe.html
@@ -1,7 +1,40 @@
- Subscription results
+ Subscription results
+
+
+
+
+
+
+
+
Subscription results
--
1.7.10.4
From 63277ce47401fb3fa2779822c44d40dc69e5dec6 Mon Sep 17 00:00:00 2001
From: "Bradley M. Kuhn"
Date: Sat, 8 Nov 2014 13:45:25 -0500
Subject: No longer hard code copyleft.org in URLs
Since I want to use the same site for SSL and non-SSL, the http://
cannot be hard coded. I've now just made sure that Apache redirects
things from lists.copyleft.org to the appropriate copyleft.org URLs.
---
.etckeeper | 2 --
mailman/en/archidxfoot.html | 4 ++--
mailman/en/archidxhead.html | 6 +++---
mailman/en/archtoc.html | 10 +++++-----
mailman/en/archtocnombox.html | 8 ++++----
mailman/en/article.html | 10 +++++-----
mailman/en/emptyarchive.html | 10 +++++-----
mailman/en/listinfo.html | 6 +++---
mailman/en/options.html | 6 +++---
mailman/en/private.html | 10 +++++-----
mailman/en/roster.html | 6 +++---
mailman/en/subscribe.html | 6 +++---
mailman/htmlformat.py | 10 +++++-----
13 files changed, 46 insertions(+), 48 deletions(-)
diff --git a/.etckeeper b/.etckeeper
index deb5ee0..2ac566e 100755
--- a/.etckeeper
+++ b/.etckeeper
@@ -35,8 +35,6 @@ maybe chmod 0755 '.'
maybe chmod 0700 './.etckeeper'
maybe chmod 0600 './.gitignore'
maybe chmod 0600 './.pwd.lock'
-maybe chmod 0600 './0001-Changes-to-Mailman-Python-code-for-copyleft.org-bran.patch'
-maybe chmod 0600 './0002-Rebranding-changes-for-copyleft.org-to-mailman-HTML-.patch'
maybe chmod 0755 './ImageMagick'
maybe chmod 0644 './ImageMagick/coder.xml'
maybe chmod 0644 './ImageMagick/colors.xml'
diff --git a/mailman/en/archidxfoot.html b/mailman/en/archidxfoot.html
index e067a37..8d1bedf 100644
--- a/mailman/en/archidxfoot.html
+++ b/mailman/en/archidxfoot.html
@@ -26,7 +26,7 @@
%(MAILMAN)s
-
-
+
+
diff --git a/mailman/en/archidxhead.html b/mailman/en/archidxhead.html
index 15bf066..c187293 100644
--- a/mailman/en/archidxhead.html
+++ b/mailman/en/archidxhead.html
@@ -1,8 +1,8 @@
-
-
+
+
The %(listname)s %(archive)s Archive by %(archtype)s
@@ -18,7 +18,7 @@
-
+
diff --git a/mailman/en/archtoc.html b/mailman/en/archtoc.html
index 1636319..cf7a749 100644
--- a/mailman/en/archtoc.html
+++ b/mailman/en/archtoc.html
@@ -2,8 +2,8 @@
The %(listname)s Archives
-
-
+
+
%(meta)s
@@ -18,7 +18,7 @@
-
+
@@ -57,7 +57,7 @@
%(MAILMAN)s
-
-
+
+
diff --git a/mailman/en/archtocnombox.html b/mailman/en/archtocnombox.html
index 76729c6..bb0a94a 100644
--- a/mailman/en/archtocnombox.html
+++ b/mailman/en/archtocnombox.html
@@ -2,8 +2,8 @@
The %(listname)s Archives
-
-
+
+
%(meta)s
@@ -27,7 +27,7 @@
%(MAILMAN)s
-
-
+
+
diff --git a/mailman/en/article.html b/mailman/en/article.html
index f1627eb..9e9de0b 100644
--- a/mailman/en/article.html
+++ b/mailman/en/article.html
@@ -1,8 +1,8 @@
-
-
+
+
%(title)s
@@ -28,7 +28,7 @@
-
+
@@ -93,6 +93,6 @@ mailing list
%(MAILMAN)s
-
-
+
+
diff --git a/mailman/en/emptyarchive.html b/mailman/en/emptyarchive.html
index 8ab9f5a..46c7143 100644
--- a/mailman/en/emptyarchive.html
+++ b/mailman/en/emptyarchive.html
@@ -2,8 +2,8 @@
The %(listname)s Archives
-
-
+
+
@@ -17,7 +17,7 @@
-
+
@@ -52,7 +52,7 @@
%(MAILMAN)s
-
-
+
+
diff --git a/mailman/en/listinfo.html b/mailman/en/listinfo.html
index e02c0c9..f825632 100644
--- a/mailman/en/listinfo.html
+++ b/mailman/en/listinfo.html
@@ -3,8 +3,8 @@
Info Page
-
-
+
+
@@ -17,7 +17,7 @@
-
+
diff --git a/mailman/en/options.html b/mailman/en/options.html
index eab207d..8f06f73 100644
--- a/mailman/en/options.html
+++ b/mailman/en/options.html
@@ -3,8 +3,8 @@
membership configuration for
-
-
+
+
@@ -17,7 +17,7 @@
-
+
diff --git a/mailman/en/private.html b/mailman/en/private.html
index 9a5ac0c..63b97f5 100644
--- a/mailman/en/private.html
+++ b/mailman/en/private.html
@@ -2,8 +2,8 @@
%(realname)s Private Archives Authentication
-
-
+
+
@@ -16,7 +16,7 @@
-
+
@@ -97,7 +97,7 @@
%(MAILMAN)s
-
-
+
+
diff --git a/mailman/en/roster.html b/mailman/en/roster.html
index bfad45e..8cb6197 100644
--- a/mailman/en/roster.html
+++ b/mailman/en/roster.html
@@ -2,8 +2,8 @@
Subscribers
-
-
+
+
@@ -17,7 +17,7 @@
-
+
diff --git a/mailman/en/subscribe.html b/mailman/en/subscribe.html
index ce0cf7c..eea41c4 100644
--- a/mailman/en/subscribe.html
+++ b/mailman/en/subscribe.html
@@ -1,8 +1,8 @@
Subscription results
-
-
+
+
@@ -16,7 +16,7 @@
-
+
diff --git a/mailman/htmlformat.py b/mailman/htmlformat.py
index e129ba9..f903e66 100644
--- a/mailman/htmlformat.py
+++ b/mailman/htmlformat.py
@@ -310,8 +310,8 @@ class Document(Container):
output.extend([tab,
'',
'',
- ' ',
- ' '
+ ' ',
+ ' '
])
if mm_cfg.IMAGE_LOGOS:
output.append(' ' %
@@ -346,7 +346,7 @@ class Document(Container):
-
+
@@ -699,8 +699,8 @@ def MailmanLogo():
%(MAILMAN)s
-
-
+
+
""" % {'MAILMAN': mmlink.Format()})
# return t
--
1.7.10.4