[Zope-Checkins] CVS: Zope3/lib/python/Zope/StartUp - RequestFactory.py:1.1.2.2.2.1
Stephan Richter
srichter@cbu.edu
Tue, 9 Apr 2002 12:12:03 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/StartUp
In directory cvs.zope.org:/tmp/cvs-serv4334/StartUp
Modified Files:
Tag: Zope3-Server-Branch
RequestFactory.py
Log Message:
Check in my big mess of stuff, which is working towards making FTP work
together with the Publisher. I will keep working on startup now, so that
we can test easier.
This is basically a check-in, so that Shane can see what I have done last
night. Please do not expect anything towork, since this is more than just
work in progress... it is a prototype to get FTP running via Publisher!
=== Zope3/lib/python/Zope/StartUp/RequestFactory.py 1.1.2.2 => 1.1.2.2.2.1 ===
#
##############################################################################
-"""
-
-$Id$
-"""
-
-from Interface import Interface
-import copy
-
-
-class IRequestFactory(Interface):
- """This is a pure read-only interface, since the values are set through
- a ZCML directive and we shouldn't be able to change them.
- """
-
- def realize(db):
- """Realize the factory by initalizing the publication.
-
- The method returns the realized object.
- """
-
-
- def __call__(input_stream, output_steam, env):
- """Call the Request Factory"""
-
-
-
-
-
-class RequestFactory:
- """This class will generically create RequestFactories. This way I do
- not have to create a method for each Server Type there is.
- """
-
- __implements__ = IRequestFactory
-
- def __init__(self, publication, request):
- """Initialize Request Factory"""
- self._pubFactory = publication
- self._publication = None
- self._request = request
-
-
- ############################################################
- # Implementation methods for interface
- # Zope.StartUp.RequestFactory.IRequestFactory
-
- def realize(self, db):
- 'See Zope.StartUp.RequestFactory.IRequestFactory'
- realized = copy.copy(self)
- realized._publication = realized._pubFactory(db)
- return realized
-
-
- def __call__(self, input_stream, output_steam, env):
- 'See Zope.StartUp.RequestFactory.IRequestFactory'
- request = self._request(input_stream, output_steam, env)
- request.setPublication(self._publication)
- return request
-
- #
- ############################################################
+"""ctory.py,v 1.1.2.2 2002/04/02 02:20:40 srichter Exp $
+"""
+
+from Interface import Interface
+import copy
+
+
+class IRequestFactory(Interface):
+ """This is a pure read-only interface, since the values are set through
+ a ZCML directive and we shouldn't be able to change them.
+ """
+
+ def realize(db):
+ """Realize the factory by initalizing the publication.
+
+ The method returns the realized object.
+ """
+
+
+ def __call__(input_stream, output_steam, env):
+ """Call the Request Factory"""
+
+
+
+
+
+class RequestFactory:
+ """This class will generically create RequestFactories. This way I do
+ not have to create a method for each Server Type there is.
+ """
+
+ __implements__ = IRequestFactory
+
+ def __init__(self, publication, request):
+ """Initialize Request Factory"""
+ self._pubFactory = publication
+ self._publication = None
+ self._request = request
+
+
+ ############################################################
+ # Implementation methods for interface
+ # Zope.StartUp.RequestFactory.IRequestFactory
+
+ def realize(self, db):
+ 'See Zope.StartUp.RequestFactory.IRequestFactory'
+ realized = copy.copy(self)
+ realized._publication = realized._pubFactory(db)
+ return realized
+
+
+ def __call__(self, input_stream, output_steam, env):
+ 'See Zope.StartUp.RequestFactory.IRequestFactory'
+ request = self._request(input_stream, output_steam, env)
+ request.setPublication(self._publication)
+ return request
+
+ #
+ ############################################################