[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/server/wsgi.py Added requestFactory argument to the WSGI server type, so we have the same

Stephan Richter srichter at cosmos.phy.tufts.edu
Mon Oct 3 14:50:48 EDT 2005


Log message for revision 38723:
  Added requestFactory argument to the WSGI server type, so we have the same 
  features as with the plain HTTP server before.
  

Changed:
  U   Zope3/trunk/src/zope/app/server/wsgi.py

-=-
Modified: Zope3/trunk/src/zope/app/server/wsgi.py
===================================================================
--- Zope3/trunk/src/zope/app/server/wsgi.py	2005-10-03 17:43:45 UTC (rev 38722)
+++ Zope3/trunk/src/zope/app/server/wsgi.py	2005-10-03 18:50:47 UTC (rev 38723)
@@ -21,6 +21,7 @@
 from zope.server.http.commonaccesslogger import CommonAccessLogger
 from zope.server.http import wsgihttpserver
 
+from zope.app.publication.httpfactory import HTTPPublicationRequestFactory
 from zope.app.wsgi import WSGIPublisherApplication
 
 import servertype
@@ -30,9 +31,11 @@
     zope.interface.implements(servertype.IServerType)
 
     def __init__(self, factory, applicationFactory, logFactory,
-                 defaultPort, defaultVerbose, defaultIP=''):
+                 defaultPort, defaultVerbose, defaultIP='',
+                 requestFactory=HTTPPublicationRequestFactory):
         self._factory = factory
         self._applicationFactory = applicationFactory
+        self._requestFactory = requestFactory
         self._logFactory = logFactory
         self._defaultPort = defaultPort
         self._defaultVerbose = defaultVerbose
@@ -43,7 +46,7 @@
                verbose=None, ip=None):
         'See IServerType'
 
-        application = self._applicationFactory(db)
+        application = self._applicationFactory(db, factory=self._requestFactory)
 
         if port is None:
             port = self._defaultPort



More information about the Zope3-Checkins mailing list