From 389956e137a670ef6557f0bcd0871c0eb775bfd7 Mon Sep 17 00:00:00 2001 From: mailman Date: Fri, 27 Feb 1998 16:57:53 +0000 Subject: Use new htmlformat.FontAttr() method to color the error messages red. --- cgi/edithtml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'cgi/edithtml') diff --git a/cgi/edithtml b/cgi/edithtml index b5ab807d8..1764492a5 100755 --- a/cgi/edithtml +++ b/cgi/edithtml @@ -120,18 +120,22 @@ try: cgi_data = cgi.FieldStorage() if len(cgi_data.keys()): if not cgi_data.has_key('adminpw'): - doc.AddItem( - htmlformat.Header(3, htmlformat.Italic('Error: ' - 'You must supply the admin password to edit html.'))) + m = 'Error: You must supply the admin password to edit html.' + doc.AddItem(htmlformat.Header(3, + htmlformat.Italic( + htmlformat.FontAttr( + m, color="ff5060")))) doc.AddItem('