[Zope3-checkins] CVS: Zope3/lib/python/Zope/ComponentArchitecture - IView.py:1.3

Jim Fulton jim@zope.com
Mon, 11 Nov 2002 15:21:16 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/ComponentArchitecture
In directory cvs.zope.org:/tmp/cvs-serv15675

Modified Files:
	IView.py 
Log Message:
Added an interface for view factories.


=== Zope3/lib/python/Zope/ComponentArchitecture/IView.py 1.2 => 1.3 ===
--- Zope3/lib/python/Zope/ComponentArchitecture/IView.py:1.2	Mon Jun 10 19:29:23 2002
+++ Zope3/lib/python/Zope/ComponentArchitecture/IView.py	Mon Nov 11 15:21:16 2002
@@ -16,9 +16,24 @@
 $Id$
 """
 
+from Interface import Interface
 from IContextDependent import IContextDependent
 from IPresentation import IPresentation
 
 class IView(IPresentation, IContextDependent):
     """Views provide a connection between an external actor and an object
     """
+
+class IViewFactory(Interface):
+    """Objects for creating views
+    """
+
+    def __call__(context, request):
+        """Create an view (IView) object
+
+        The context aregument is the object displayed by the view. The
+        request argument is an object, such as a web request, that
+        "stands in" for the user.
+        """
+
+