Update of /cvsroot/mailman/mailman/Mailman
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5066/Mailman
Modified Files:
Tag: Release_2_1-maint
Utils.py htmlformat.py
Log Message:
New names added to ACKNOWLEDGMENTS. Updated NEWS in preparation for 2.1.6b1.
Update copyright years for files changes in 2005. Whitespace normalization.
Index: Utils.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Utils.py,v
retrieving revision 2.45.2.13
retrieving revision 2.45.2.14
diff -u -d -r2.45.2.13 -r2.45.2.14
--- Utils.py 11 Jan 2005 12:48:17 -0000 2.45.2.13
+++ Utils.py 16 Jan 2005 21:57:03 -0000 2.45.2.14
@@ -1,4 +1,4 @@
-# Copyright (C) 1998-2004 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-2005 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Index: htmlformat.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/htmlformat.py,v
retrieving revision 2.18.2.2
retrieving revision 2.18.2.3
diff -u -d -r2.18.2.2 -r2.18.2.3
--- htmlformat.py 12 Jan 2005 02:14:43 -0000 2.18.2.2
+++ htmlformat.py 16 Jan 2005 21:57:04 -0000 2.18.2.3
@@ -1,17 +1,17 @@
-# Copyright (C) 1998,1999,2000,2001,2002 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-2005 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
+# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
@@ -84,7 +84,7 @@
# Add a new blank cell at the end
def NewCell(self):
self.cells[-1].append('')
-
+
def AddRow(self, row):
self.cells.append(row)
@@ -99,7 +99,7 @@
DictMerge(self.cell_info[row], kws)
else:
self.cell_info[row][col] = kws
-
+
def AddRowInfo(self, row, **kws):
kws = CaseInsensitiveKeyedDict(kws)
if not self.row_info.has_key(row):
@@ -110,7 +110,7 @@
# What's the index for the row we just put in?
def GetCurrentRowIndex(self):
return len(self.cells)-1
-
+
# What's the index for the col we just put in?
def GetCurrentCellIndex(self):
return len(self.cells[-1])-1
@@ -154,7 +154,7 @@
if key == 'border' and val == None:
output = output + ' BORDER'
continue
- else:
+ else:
output = output + ' %s="%s"' % (key.upper(), val)
return output
@@ -202,14 +202,14 @@
output = output + '\n' + ' '*indent + '</table>\n'
return output
-
+
class Link:
def __init__(self, href, text, target=None):
self.href = href
self.text = text
self.target = target
-
+
def Format(self, indent=0):
texpr = ""
if self.target != None:
@@ -223,7 +223,7 @@
def __init__(self, size, *items):
self.items = list(items)
self.size = size
-
+
def Format(self, indent=0):
output = '<font size="%s">' % self.size
for item in self.items:
@@ -236,7 +236,7 @@
def __init__(self, *items, **kw):
self.items = list(items)
self.attrs = kw
-
+
def Format(self, indent=0):
seq = []
for k, v in self.attrs.items():
@@ -345,7 +345,7 @@
class HeadlessDocument(Document):
"""Document without head section, for templates that provide their own."""
suppress_head = 1
-
+
class StdContainer(Container):
def Format(self, indent=0):
@@ -353,7 +353,7 @@
output = '<%s>' % self.tag
output = output + Container.Format(self, indent)
output = '%s</%s>' % (output, self.tag)
- return output
+ return output
class QuotedContainer(Container):
@@ -375,9 +375,9 @@
class Underline(StdContainer):
tag = 'u'
-
+
class Bold(StdContainer):
- tag = 'strong'
+ tag = 'strong'
class Italic(StdContainer):
tag = 'em'
@@ -494,7 +494,7 @@
self.size = size
def Format(self, indent=0):
output = '<spacer type="vertical" height="%d">' % self.size
- return output
+ return output
class WidgetArray:
Widget = None
@@ -578,7 +578,7 @@
(spaces, HTMLFormatObject(item, indent + 2))
output = output + '%s</ol>\n' % spaces
return output
-
+
class DefinitionList(Container):
def Format(self, indent=0):
spaces = ' ' * indent
@@ -632,14 +632,14 @@
class SelectOptions:
- def __init__(self, varname, values, legend,
+ def __init__(self, varname, values, legend,
selected=0, size=1, multiple=None):
self.varname = varname
self.values = values
self.legend = legend
self.size = size
self.multiple = multiple
- # we convert any type to tuple, commas are needed
+ # we convert any type to tuple, commas are needed
if not multiple:
if type(selected) == types.IntType:
self.selected = (selected,)
@@ -649,7 +649,7 @@
self.selected = (selected[0],)
else:
self.selected = (0,)
-
+
def Format(self, indent=0):
spaces = " " * indent
items = min( len(self.values), len(self.legend) )
@@ -657,22 +657,22 @@
# jcrey: If there is no argument, we return nothing to avoid errors
if items == 0:
return ""
-
+
text = "\n" + spaces + "<Select name=\"%s\"" % self.varname
if self.size > 1:
text = text + " size=%d" % self.size
if self.multiple:
text = text + " multiple"
text = text + ">\n"
-
+
for i in range(items):
if i in self.selected:
checked = " Selected"
else:
checked = ""
-
+
opt = " <option value=\"%s\"%s> %s </option>" % (
self.values[i], checked, self.legend[i])
text = text + spaces + opt + "\n"
-
+
return text + spaces + '</Select>'
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org