[Zope-Checkins] CVS: Zope/lib/python/ZServer - PCGIServer.py:1.27

Tres Seaver cvs-admin at zope.org
Tue Nov 18 08:17:50 EST 2003


Update of /cvs-repository/Zope/lib/python/ZServer
In directory cvs.zope.org:/tmp/cvs-serv30559/lib/python/ZServer

Modified Files:
	PCGIServer.py 
Log Message:
 - Merge tseaver-strexp_delenda-branch to the head.


=== Zope/lib/python/ZServer/PCGIServer.py 1.26 => 1.27 ===
--- Zope/lib/python/ZServer/PCGIServer.py:1.26	Tue Mar 18 16:15:14 2003
+++ Zope/lib/python/ZServer/PCGIServer.py	Tue Nov 18 08:17:18 2003
@@ -51,6 +51,9 @@
 
 tz_for_log=compute_timezone_for_log()
 
+class ParseError(Exception):
+    pass
+
 class PCGIChannel(asynchat.async_chat):
     """Processes a PCGI request by collecting the env and stdin and
     then passing them to ZPublisher. The result is wrapped in a
@@ -300,7 +303,7 @@
                 k,v=string.split(line,'=',1)
                 directives[string.strip(k)]=string.strip(v)
         except:
-            raise 'ParseError', 'Error parsing PCGI info file'
+            raise ParseError, 'Error parsing PCGI info file'
 
         self.pid_file=directives.get('PCGI_PID_FILE',None)
         self.socket_file=directives.get('PCGI_SOCKET_FILE',None)




More information about the Zope-Checkins mailing list