CVS: tmda-cgi ChangeLog,1.48,1.49 Template.py,1.9,1.10 configure,1.13,1.14

Gre7g Luterman <[email protected]>
Newsgroups gmane.mail.spam.tmda.cvs
Message-ID <[email protected]>
Update of /cvsroot/tmda/tmda-cgi
In directory sc8-pr-cvs1:/tmp/cvs-serv8301

Modified Files:
	ChangeLog Template.py configure 
Log Message:
Caught an extra exception in the configure program.

Fixed a weird little bug in Template.py that caused an extra space to be
printed before the Content-Type: string.


Index: ChangeLog
===================================================================
RCS file: /cvsroot/tmda/tmda-cgi/ChangeLog,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -r1.48 -r1.49
--- ChangeLog	14 Jul 2003 21:15:20 -0000	1.48
+++ ChangeLog	23 Jul 2003 17:46:21 -0000	1.49
@@ -1,3 +1,10 @@
+2003-07-23  Gre7g Luterman  <[email protected]>
+
+	* Caught an extra exception in the configure program.
+
+	* Fixed a weird little bug in Template.py that caused an extra space
+	  to be printed before the Content-Type: string.
+
 2003-07-14  Gre7g Luterman  <[email protected]>
 
 	* Fixed some of Jim's type-o's.  Fixed a stub reference I broke.

Index: Template.py
===================================================================
RCS file: /cvsroot/tmda/tmda-cgi/Template.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- Template.py	13 Jul 2003 18:43:34 -0000	1.9
+++ Template.py	23 Jul 2003 17:46:21 -0000	1.10
@@ -110,6 +110,7 @@
 
 import copy
 import re
+import sys
 from types import StringType
 
 # Module globals
@@ -120,7 +121,7 @@
 
   global SentHeaders
 
-  if not SentHeaders: print "Content-Type: text/html\n\n"
+  if not SentHeaders: sys.stdout.write("Content-Type: text/html\n\n")
   SentHeaders = 1
   print Str
 
@@ -165,7 +166,10 @@
     global SentHeaders
 
     if not SentHeaders:
-      print "Content-Type: text/html; charset=%(CharSet)s\n" % self.Dict
+      sys.stdout.write \
+      (
+        "Content-Type: text/html; charset=%(CharSet)s\n\n" % self.Dict
+      )
     SentHeaders = 1
 
     RetVal = ""

Index: configure
===================================================================
RCS file: /cvsroot/tmda/tmda-cgi/configure,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- configure	17 Jun 2003 03:46:51 -0000	1.13
+++ configure	23 Jul 2003 17:46:21 -0000	1.14
@@ -164,7 +164,7 @@
   readline.parse_and_bind("tab: complete")
   readline.set_startup_hook(SetDefault)
   Input = TabCompInput
-except ImportError:
+except ImportError, AttributeError:
   Input = PlainInput
 
 def Ask(Question, Str, ValProg = None, TestStr = None):

_______________________________________
tmda-cvs mailing list
http://tmda.net/lists/listinfo/tmda-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.