[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/services - view.py:1.5

Jeremy Hylton jeremy@zope.com
Mon, 23 Jun 2003 12:20:38 -0400


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

Modified Files:
	view.py 
Log Message:
Implement IInterfaceBasedRegistry for the ViewService.
Add an interface to describe getRegisteredMatching() for the local view service.
zapi-ify the local view service.
setup-ify the local view service tests.


=== Zope3/src/zope/app/interfaces/services/view.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/interfaces/services/view.py:1.4	Sat Jun 21 17:22:10 2003
+++ Zope3/src/zope/app/interfaces/services/view.py	Mon Jun 23 12:20:08 2003
@@ -24,6 +24,25 @@
 from zope.app.services.field import ComponentPath
 from zope.component.interfaces import IPresentation
 
+class ILocalViewService(Interface):
+    """Local view service interface.
+
+    Provides an interface for managing and browsing registered views.
+    """
+
+    def getRegisteredMatching(required_interfaces=None, presentation_type=None,
+                              viewName=None, layer=None):
+        """Return registrations matching keyword arg criteria.
+
+        Return is an iterable 5-tuples containing:
+        - registered required interface
+        - registered provided interface
+        - registration stack
+        - layer
+        - view name
+        """
+
+
 class IAdapterRegistrationInfo(Interface):
 
     forInterface = InterfaceField(