@@ -505,7 +506,7 @@
The %(listname)s Archives
-
+
The %(listname)s Archives
You can get more information about this list
@@ -625,6 +626,7 @@
"firstdate": html_quote(self.firstdate),
"lastdate": html_quote(self.lastdate),
"size": self.size,
+ "background_color": mm_cfg.BACKGD_COLOR,
}
for t in ("thread", "subject", "author", "date"):
cap = string.upper(t[0]) + t[1:]
@@ -663,6 +665,7 @@
d["archive_listing"] = string.join(accum, '')
if not d.has_key("encoding"):
d["encoding"] = ""
+ d["background_color"] = mm_cfg.BACKGD_COLOR
return self.html_TOC_tmpl % d
def html_TOC_entry(self, arch):
diff -Pur mailman-2.0-base/Mailman/Cgi/admin.py mailman-2.0/Mailman/Cgi/admin.py
--- mailman-2.0-base/Mailman/Cgi/admin.py Thu Sep 28 19:05:04 2000
+++ mailman-2.0/Mailman/Cgi/admin.py Thu Dec 14 18:21:55 2000
@@ -106,7 +106,7 @@
varhelp = qs[0]
if varhelp:
FormatOptionHelp(doc, varhelp, mlist)
- print doc.Format(bgcolor="#ffffff")
+ print doc.Format(bgcolor=mm_cfg.BACKGD_COLOR)
return
if cgidata.has_key('bounce_matching_headers'):
@@ -133,7 +133,7 @@
until you fix this problem.''')
FormatConfiguration(doc, mlist, category, category_suffix, cgidata)
- print doc.Format(bgcolor="#ffffff")
+ print doc.Format(bgcolor=mm_cfg.BACKGD_COLOR)
finally:
mlist.Save()
mlist.Unlock()
@@ -150,7 +150,7 @@
table = Table(border=0, width="100%")
table.AddRow([Center(Header(2, legend))])
table.AddCellInfo(max(table.GetCurrentRowIndex(), 0), 0,
- colspan=2, bgcolor="#99ccff")
+ colspan=2, bgcolor=mm_cfg.MAJOR_COLOR)
advertised = []
names = Utils.list_names()
@@ -217,7 +217,7 @@
doc.AddItem(table)
doc.AddItem('
')
doc.AddItem(MailmanLogo())
- print doc.Format(bgcolor="#ffffff")
+ print doc.Format(bgcolor=mm_cfg.BACKGD_COLOR)
@@ -308,7 +308,7 @@
label = v
big_table.AddRow([Center(Header(2, label))])
big_table.AddCellInfo(max(big_table.GetCurrentRowIndex(), 0), 0,
- colspan=2, bgcolor="#99ccff")
+ colspan=2, bgcolor=mm_cfg.MAJOR_COLOR)
def ColHeader(big_table = big_table):
big_table.AddRow([Center(Bold('Description')), Center(Bold('Value'))])
@@ -356,9 +356,9 @@
val = GetItemGuiValue(mlist, kind, varname, params)
table.AddRow([descr, val])
table.AddCellInfo(max(table.GetCurrentRowIndex(), 0), 1,
- bgcolor="#cccccc")
+ bgcolor=mm_cfg.FIELD_COLOR)
table.AddCellInfo(max(table.GetCurrentRowIndex(), 0), 0,
- bgcolor="#cccccc")
+ bgcolor=mm_cfg.FIELD_COLOR)
@@ -390,7 +390,7 @@
% (mlist.real_name, varname))
header.AddRow([Center(Header(3, legend))])
header.AddCellInfo(max(header.GetCurrentRowIndex(), 0), 0,
- colspan=2, bgcolor="#99ccff")
+ colspan=2, bgcolor=mm_cfg.MAJOR_COLOR)
doc.SetTitle("Mailman %s List Option Help" % varname)
doc.AddItem(header)
doc.AddItem("%s (%s): %s" % (varname, category, descr))
@@ -516,13 +516,13 @@
header = Table(width="100%")
header.AddRow([Center(Header(2, "Membership Management"))])
header.AddCellInfo(max(header.GetCurrentRowIndex(), 0), 0,
- colspan=2, bgcolor="#99ccff")
+ colspan=2, bgcolor=mm_cfg.MAJOR_COLOR)
container.AddItem(header)
user_table = Table(width="90%", border='2')
user_table.AddRow([Center(Header(4, "Membership List"))])
user_table.AddCellInfo(user_table.GetCurrentRowIndex(),
user_table.GetCurrentCellIndex(),
- bgcolor="#cccccc", colspan=8)
+ bgcolor=mm_cfg.FIELD_COLOR, colspan=8)
user_table.AddRow(
[Center(Italic("(%s members total, max. %s at a time displayed)" %
(len(mlist.members)
@@ -530,7 +530,7 @@
mlist.admin_member_chunksize)))])
user_table.AddCellInfo(user_table.GetCurrentRowIndex(),
user_table.GetCurrentCellIndex(),
- bgcolor="#cccccc", colspan=8)
+ bgcolor=mm_cfg.FIELD_COLOR, colspan=8)
user_table.AddRow(map(Center, ['member address', 'subscr',
'hide', 'nomail', 'ack', 'not metoo',
@@ -613,7 +613,7 @@
t.AddRow([Center(Header(4, "Mass Subscribe Members"))])
t.AddCellInfo(t.GetCurrentRowIndex(),
t.GetCurrentCellIndex(),
- bgcolor="#cccccc", colspan=8)
+ bgcolor=mm_cfg.FIELD_COLOR, colspan=8)
if mlist.send_welcome_msg:
nochecked = 0
yeschecked = 1
@@ -636,17 +636,17 @@
def FormatPasswordStuff():
- change_pw_table = Table(bgcolor="#99cccc", border=0,
+ change_pw_table = Table(bgcolor=mm_cfg.ADMPW_COLOR, border=0,
cellspacing=0, cellpadding=2,
valign="top")
change_pw_table.AddRow(
[Bold(Center('To Change The Administrator Password'))])
change_pw_table.AddCellInfo(0, 0, align="left", colspan=2)
- old = Table(bgcolor="#99cccc", border=1,
+ old = Table(bgcolor=mm_cfg.ADMPW_COLOR, border=1,
cellspacing=0, cellpadding=2, valign="top")
old.AddRow(['
Enter current password:
',
PasswordBox('adminpw')])
- new = Table(bgcolor="#99cccc", border=1,
+ new = Table(bgcolor=mm_cfg.ADMPW_COLOR, border=1,
cellspacing=0, cellpadding=2, valign="top")
new.AddRow([' Enter new password:
',
PasswordBox('newpw')])
@@ -660,7 +660,7 @@
def FormatSubmit():
- submit = Table(bgcolor="#99ccff",
+ submit = Table(bgcolor=mm_cfg.MAJOR_COLOR,
border=0, cellspacing=0, cellpadding=2)
submit.AddRow([Bold(SubmitButton('submit', 'Submit Your Changes'))])
submit.AddCellInfo(submit.GetCurrentRowIndex(), 0, align="middle")
@@ -919,7 +919,7 @@
def AddErrorMessage(doc, errmsg, tag='Warning: ', *args):
doc.AddItem(Header(3, Bold(FontAttr(
- tag, color="#ff0000", size="+2")).Format() +
+ tag, color=mm_cfg.ERROR_COLOR, size="+2")).Format() +
Italic(errmsg % args).Format()))
diff -Pur mailman-2.0-base/Mailman/Cgi/admindb.py mailman-2.0/Mailman/Cgi/admindb.py
--- mailman-2.0-base/Mailman/Cgi/admindb.py Thu Sep 28 19:05:05 2000
+++ mailman-2.0/Mailman/Cgi/admindb.py Thu Dec 14 18:00:15 2000
@@ -43,7 +43,7 @@
link = link + '/'
link = link + 'admin'
doc.AddItem(Link(link, 'list of available mailing lists.'))
- print doc.Format(bgcolor="#ffffff")
+ print doc.Format(bgcolor=mm_cfg.BACKGD_COLOR)
@@ -89,7 +89,7 @@
else:
doc.SetTitle("%s Admindb" % mlist.real_name)
PrintRequests(mlist, doc)
- text = doc.Format(bgcolor="#ffffff")
+ text = doc.Format(bgcolor=mm_cfg.BACKGD_COLOR)
print text
finally:
mlist.Save()
diff -Pur mailman-2.0-base/Mailman/Cgi/edithtml.py mailman-2.0/Mailman/Cgi/edithtml.py
--- mailman-2.0-base/Mailman/Cgi/edithtml.py Thu Sep 28 19:05:05 2000
+++ mailman-2.0/Mailman/Cgi/edithtml.py Thu Dec 14 18:28:11 2000
@@ -42,7 +42,7 @@
parts = Utils.GetPathPieces()
if not parts:
doc.AddItem(Header(2, "List name is required."))
- print doc.Format(bgcolor='#ffffff')
+ print doc.Format(bgcolor=mm_cfg.BACKGD_COLOR)
return
listname = string.lower(parts[0])
@@ -50,7 +50,7 @@
mlist = MailList.MailList(listname, lock=0)
except Errors.MMListError, e:
doc.AddItem(Header(2, 'No such list %s' % listname))
- print doc.Format(bgcolor='#ffffff')
+ print doc.Format(bgcolor=mm_cfg.BACKGD_COLOR)
syslog('error', 'No such list "%s": %s\n' % (listname, e))
return
@@ -77,7 +77,7 @@
doc.SetTitle('Edit HTML : Error')
doc.AddItem(Header(2, "%s: Invalid template" % template_name))
doc.AddItem(mlist.GetMailmanFooter())
- print doc.Format(bgcolor='#ffffff')
+ print doc.Format(bgcolor=mm_cfg.BACKGD_COLOR)
return
else:
doc.SetTitle('%s -- HTML Page Editing' % mlist.real_name)
@@ -89,7 +89,7 @@
template_list.AddItem(l)
doc.AddItem(FontSize("+2", template_list))
doc.AddItem(mlist.GetMailmanFooter())
- print doc.Format(bgcolor='#ffffff')
+ print doc.Format(bgcolor=mm_cfg.BACKGD_COLOR)
return
try:
@@ -98,7 +98,7 @@
FormatHTML(mlist, doc, template_name, template_info)
finally:
doc.AddItem(mlist.GetMailmanFooter())
- print doc.Format(bgcolor='#ffffff')
+ print doc.Format(bgcolor=mm_cfg.BACKGD_COLOR)
diff -Pur mailman-2.0-base/Mailman/Cgi/handle_opts.py mailman-2.0/Mailman/Cgi/handle_opts.py
--- mailman-2.0-base/Mailman/Cgi/handle_opts.py Thu Nov 9 10:19:03 2000
+++ mailman-2.0/Mailman/Cgi/handle_opts.py Thu Dec 14 18:00:15 2000
@@ -42,7 +42,7 @@
replacements[''] = operation
output = mlist.ParseTags('handle_opts.html', replacements)
doc.AddItem(output)
- print doc.Format(bgcolor="#ffffff")
+ print doc.Format(bgcolor=mm_cfg.BACKGD_COLOR)
# hrm...
sys.exit(0)
@@ -54,7 +54,7 @@
if not parts or len(parts) < 2:
doc.AddItem(Header(2, "Error"))
doc.AddItem(Bold("Invalid options to CGI script."))
- print doc.Format(bgcolor="#ffffff")
+ print doc.Format(bgcolor=mm_cfg.BACKGD_COLOR)
return
listname = string.lower(parts[0])
@@ -65,7 +65,7 @@
except Errors.MMListError, e:
doc.AddItem(Header(2, "Error"))
doc.AddItem(Bold('No such list %s' % listname))
- print doc.Format(bgcolor="#ffffff")
+ print doc.Format(bgcolor=mm_cfg.BACKGD_COLOR)
syslog('error', 'No such list "%s": %s\n' % (listname, e))
return
@@ -170,7 +170,7 @@
for name, link in all_links:
items.AddItem(link)
doc.AddItem(items)
- print doc.Format(bgcolor="#ffffff")
+ print doc.Format(bgcolor=mm_cfg.BACKGD_COLOR)
elif form.has_key("changepw"):
if form.has_key('opw') and \
diff -Pur mailman-2.0-base/Mailman/Cgi/listinfo.py mailman-2.0/Mailman/Cgi/listinfo.py
--- mailman-2.0-base/Mailman/Cgi/listinfo.py Thu Sep 28 19:05:05 2000
+++ mailman-2.0/Mailman/Cgi/listinfo.py Thu Dec 14 18:00:15 2000
@@ -71,7 +71,7 @@
table = Table(border=0, width="100%")
table.AddRow([Center(Header(2, legend))])
table.AddCellInfo(max(table.GetCurrentRowIndex(), 0), 0,
- colspan=2, bgcolor="#99ccff")
+ colspan=2, bgcolor=mm_cfg.MAJOR_COLOR)
advertised = []
names = Utils.list_names()
@@ -142,7 +142,7 @@
doc.AddItem(table)
doc.AddItem('
')
doc.AddItem(MailmanLogo())
- print doc.Format(bgcolor="#ffffff")
+ print doc.Format(bgcolor=mm_cfg.BACKGD_COLOR)
diff -Pur mailman-2.0-base/Mailman/Cgi/private.py mailman-2.0/Mailman/Cgi/private.py
--- mailman-2.0-base/Mailman/Cgi/private.py Mon Oct 2 15:52:35 2000
+++ mailman-2.0/Mailman/Cgi/private.py Thu Dec 14 18:34:06 2000
@@ -35,7 +35,7 @@
%(listname)s Private Archives Authentication
-
+