[Zope-Checkins] CVS: Zope/ZServer - HTTPServer.py:1.39

Andreas Jung andreas@digicool.com
Sun, 10 Mar 2002 20:01:02 -0500


Update of /cvs-repository/Zope/ZServer
In directory cvs.zope.org:/tmp/cvs-serv1090/ZServer

Modified Files:
	HTTPServer.py 
Log Message:
Collector #280: webdav source port handling broken when zope
has been started without webdav server


=== Zope/ZServer/HTTPServer.py 1.38 => 1.39 ===
 
         if env['REQUEST_METHOD']=='GET':
-            if sys.WEBDAV_SOURCE_PORT_CLIENTS:
+            wdav_client_reg = getattr(sys,'WEBDAV_SOURCE_PORT_CLIENTS',None)
 
+            if wdav_client_reg:
                 agent = get_header(USER_AGENT,request.header)
-                
-                if sys.WEBDAV_SOURCE_PORT_CLIENTS(agent):
+                if wdav_client_reg(agent):
 
                     env['WEBDAV_SOURCE_PORT'] = 1
                     path_info  = env['PATH_INFO']