[Checkins] SVN: zope.introspector/trunk/src/zope/introspector/ Moved ViewInfo interface to interfaces.py.

Uli Fouquet uli at gnufix.de
Sun Jun 22 18:20:36 EDT 2008


Log message for revision 87661:
  Moved ViewInfo interface to interfaces.py.

Changed:
  U   zope.introspector/trunk/src/zope/introspector/interfaces.py
  U   zope.introspector/trunk/src/zope/introspector/viewinfo.py

-=-
Modified: zope.introspector/trunk/src/zope/introspector/interfaces.py
===================================================================
--- zope.introspector/trunk/src/zope/introspector/interfaces.py	2008-06-22 21:54:52 UTC (rev 87660)
+++ zope.introspector/trunk/src/zope/introspector/interfaces.py	2008-06-22 22:20:35 UTC (rev 87661)
@@ -128,3 +128,24 @@
         """ Returns the registration
         """
 
+class IViewInfo(Interface):
+    """The representation of an object that has views associated.
+    """
+
+    def getViews(layer=None):
+        """Get the views for context object.
+
+        Optional layer argument retrieves views registered for this layer.
+
+        Returns iterator (view name, view factory) tuples.
+        """
+
+    def getAllViews():
+        """Get all views for context objects, for any layer that is in a skin.
+
+        Returns iterator of (skin name, (skin) layer, view name,
+        view factory) tuples.
+
+        The default layer will be returned with u'' as the skin name.
+        """
+        

Modified: zope.introspector/trunk/src/zope/introspector/viewinfo.py
===================================================================
--- zope.introspector/trunk/src/zope/introspector/viewinfo.py	2008-06-22 21:54:52 UTC (rev 87660)
+++ zope.introspector/trunk/src/zope/introspector/viewinfo.py	2008-06-22 22:20:35 UTC (rev 87661)
@@ -1,6 +1,6 @@
 ##############################################################################
 #
-# Copyright (c) 2007 Zope Corporation and Contributors.
+# Copyright (c) 2007-2008 Zope Corporation and Contributors.
 # All Rights Reserved.
 #
 # This software is subject to the provisions of the Zope Public License,
@@ -22,26 +22,6 @@
                                                
 import grokcore.component as grok
 
-class IViewInfo(Interface):
-
-    def getViews(layer=None):
-        """Get the views for context object.
-
-        Optional layer argument retrieves views registered for this layer.
-
-        Returns iterator (view name, view factory) tuples.
-        """
-
-
-    def getAllViews():
-        """Get all views for context objects, for any layer that is in a skin.
-
-        Returns iterator of (skin name, (skin) layer, view name,
-        view factory) tuples.
-
-        The default layer will be returned with u'' as the skin name.
-        """
-        
 class ViewInfo(grok.Adapter):
     """Determine views for contexts.
     """



More information about the Checkins mailing list