[Zope3-checkins] CVS: Zope3/src/zope/app/component - metadirectives.py:1.15

Stephan Richter srichter at cosmos.phy.tufts.edu
Sat Mar 20 12:10:57 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/component
In directory cvs.zope.org:/tmp/cvs-serv23003/src/zope/app/component

Modified Files:
	metadirectives.py 
Log Message:


Created specific IDefaultView schema.




=== Zope3/src/zope/app/component/metadirectives.py 1.14 => 1.15 ===
--- Zope3/src/zope/app/component/metadirectives.py:1.14	Mon Mar 15 15:41:56 2004
+++ Zope3/src/zope/app/component/metadirectives.py	Sat Mar 20 12:10:56 2004
@@ -235,6 +235,25 @@
         value_type=GlobalObject()
         )
 
+class IDefaultViewDirective(IBasicResourceInformation):
+    """The name of the view that should be the default.
+
+    This name refers to view that should be the
+    view used by default (if no view name is supplied
+    explicitly).
+    """
+
+    for_ = GlobalObject(
+        title=u"The interface this view is the default for.",
+        description=u"""
+        The view is the default view for the supplied interface. If
+        this is not supplied, the view applies to all objects (XXX
+        this ought to change).""",
+        required=False
+        )
+
+
+
 class IResourceDirective(IBasicComponentInformation,
                          IBasicResourceInformation):
     """




More information about the Zope3-Checkins mailing list