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

Tres Seaver cvs-admin at zope.org
Mon Nov 17 17:10:40 EST 2003


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

Modified Files:
      Tag: tseaver-strexp_delenda-branch
	PCGIServer.py 
Log Message:



  - Rip string exceptins out by the root.

  - webdav/*:  clean up block statements for readability.

  - XXX:  Redirects are now showing up in the error log object;  need
          to filter!


=== Zope/lib/python/ZServer/PCGIServer.py 1.26 => 1.26.30.1 ===
--- Zope/lib/python/ZServer/PCGIServer.py:1.26	Tue Mar 18 16:15:14 2003
+++ Zope/lib/python/ZServer/PCGIServer.py	Mon Nov 17 17:10:10 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