[Zope3-checkins] CVS: Zope3/src/zope/app/publisher/interfaces - browser.py:1.3

Stephan Richter srichter at cosmos.phy.tufts.edu
Tue Mar 23 17:08:37 EST 2004


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

Modified Files:
	browser.py 
Log Message:


Rip out usage everywhere.




=== Zope3/src/zope/app/publisher/interfaces/browser.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/publisher/interfaces/browser.py:1.2	Fri Mar 19 15:26:48 2004
+++ Zope3/src/zope/app/publisher/interfaces/browser.py	Tue Mar 23 17:08:06 2004
@@ -26,24 +26,6 @@
 class IBrowserView(IView):
     """Browser View"""
 
-class IUsage(Interface):
-
-    usage = TextLine(
-        title=u"The template usage top-level variable",
-        description=u"""
-          See the usage documentation in the README.txt in the
-          zope/app/browser/skins directory.
-          If this view is associated with a menu item, this attribute should
-          not be supplied as the view will get its usage from the menu the
-          menu item is registered to.
-          This attribute is available for views not associated with a menu
-          item.
-          """,
-        required=False,
-        default=u""
-        )
-
-
 class IBrowserMenuItem(Interface):
     """A menu item represents one view. These views might be conditioned
     (using a filter) or being selected to be the default view of the menu."""
@@ -97,7 +79,7 @@
         required=False)
 
 
-class IBrowserMenu(IUsage):
+class IBrowserMenu(Interface):
     """A menu can contain a set of views that a represented asa
     collective."""
 
@@ -165,15 +147,11 @@
         If no entry can be found, None is returned.
         """
 
-    def getMenuUsage(self, menu_id):
-        """Return the usage attribute of a specified menu."""
-
-
 class IGlobalBrowserMenuService(IBrowserMenuService):
     """The global menu defines some additional methods that make it easier to
     setup the service (via ZCML for example)."""
 
-    def menu(self, menu_id, title, description=u'', usage=u''):
+    def menu(self, menu_id, title, description=u''):
         """Add a new menu to the service."""
 
     def menuItem(self, menu_id, interface, action, title,




More information about the Zope3-Checkins mailing list