[Zope-Checkins] CVS: Zope - z2.py:1.59

Andreas Jung andreas@digicool.com
Thu, 7 Mar 2002 11:51:37 -0500


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

Modified Files:
	z2.py 
Log Message:
added retrieval of the document source on the standard HTTP port
for dedicated webdav clients by setting the env. var 
WEBDAV_SOURCE_PORT_CLIENTS


=== Zope/z2.py 1.58 => 1.59 ===
             hs.install_handler(zh)
 
+            # enable document retrieval of the document source on the 
+            # standard HTTP port
+
+            clients = os.environ.get('WEBDAV_SOURCE_PORT_CLIENTS')
+            if clients:
+                import re
+                sys.WEBDAV_SOURCE_PORT_CLIENTS = re.compile(clients).search
+            else:
+                sys.WEBDAV_SOURCE_PORT_CLIENTS = None
+
+
     # FTP Server
     if FTP_PORT:
         if type(FTP_PORT) is type(0): FTP_PORT=((IP_ADDRESS, FTP_PORT),)