summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw2002-10-17 17:14:56 +0000
committerbwarsaw2002-10-17 17:14:56 +0000
commit67d54b204c9e57314e76e9338618b260dc5ff9e7 (patch)
treea974f43859fecf3a574c9223a74ec74e12213fb7
parentf45119ef33ba4fbbf7807008b0ecce389a8a38db (diff)
downloadmailman-67d54b204c9e57314e76e9338618b260dc5ff9e7.tar.gz
mailman-67d54b204c9e57314e76e9338618b260dc5ff9e7.tar.zst
mailman-67d54b204c9e57314e76e9338618b260dc5ff9e7.zip
FakeDoc.addError(): Make the API really equivalent to
Document.addError()
-rw-r--r--bin/config_list8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/config_list b/bin/config_list
index 5dfa0e6c3..711d7648a 100644
--- a/bin/config_list
+++ b/bin/config_list
@@ -219,9 +219,11 @@ def getPropertyMap(mlist):
class FakeDoc:
- # Supports the interface required by gui._setValue()
- def addError(self, s):
- print >> sys.stderr, s
+ # Fake the error reporting API for the htmlformat.Document class
+ def addError(self, s, tag=None, *args):
+ if tag:
+ print >> sys.stderr, tag
+ print >> sys.stderr, s % args
def do_input(listname, infile, checkonly, verbose):