[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/startup - __init__.py:1.2.4.1

Sidnei da Silva sidnei@x3ng.com.br
Tue, 11 Feb 2003 09:41:51 -0500


Update of /cvs-repository/Zope3/src/zope/app/interfaces/startup
In directory cvs.zope.org:/tmp/cvs-serv18615/src/zope/app/interfaces/startup

Modified Files:
      Tag: paris-copypasterename-branch
	__init__.py 
Log Message:
Updating from HEAD to make sure everything still works before merging

=== Zope3/src/zope/app/interfaces/startup/__init__.py 1.2 => 1.2.4.1 ===
--- Zope3/src/zope/app/interfaces/startup/__init__.py:1.2	Wed Dec 25 09:13:03 2002
+++ Zope3/src/zope/app/interfaces/startup/__init__.py	Tue Feb 11 09:41:21 2003
@@ -1,2 +1,44 @@
+##############################################################################
 #
-# This file is necessary to make this directory a package.
+# Copyright (c) 2003 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""ctory.py,v 1.1.2.2 2002/04/02 02:20:40 srichter Exp $
+"""
+
+from zope.interface import Interface
+
+class IPublicationRequestFactoryFactory(Interface):
+    """Publication request factory factory
+    """
+
+    def realize(db):
+        """Create a publication and request factory for a given database
+
+        Return a IPublicationRequestFactory for the given database.
+        """
+
+class IPublicationRequestFactory(Interface):
+    """Publication request factory 
+    """
+
+    def __call__(input_stream, output_steam, env):
+        """Create a request object to handle the given inputs
+
+        A request is created and configured with a publication object.
+        """
+
+
+class IRequestFactory(IPublicationRequestFactory,
+                      IPublicationRequestFactoryFactory):
+    """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.
+    """