[Zope-Checkins] SVN: Zope/trunk/lib/python/Products/Five/browser/
Found another class which is exactly the same now as the one
in Zope3.
Hanno Schlichting
plone at hannosch.info
Sat Apr 26 16:10:16 EDT 2008
Log message for revision 85775:
Found another class which is exactly the same now as the one in Zope3.
Changed:
U Zope/trunk/lib/python/Products/Five/browser/configure.zcml
U Zope/trunk/lib/python/Products/Five/browser/menu.py
-=-
Modified: Zope/trunk/lib/python/Products/Five/browser/configure.zcml
===================================================================
--- Zope/trunk/lib/python/Products/Five/browser/configure.zcml 2008-04-26 19:44:07 UTC (rev 85774)
+++ Zope/trunk/lib/python/Products/Five/browser/configure.zcml 2008-04-26 20:10:16 UTC (rev 85775)
@@ -80,7 +80,7 @@
for="*"
name="view_get_menu"
permission="zope.Public"
- class=".menu.MenuAccessView"
+ class="zope.app.publisher.browser.menu.MenuAccessView"
allowed_interface="zope.app.publisher.interfaces.browser.IMenuAccessView"
/>
Modified: Zope/trunk/lib/python/Products/Five/browser/menu.py
===================================================================
--- Zope/trunk/lib/python/Products/Five/browser/menu.py 2008-04-26 19:44:07 UTC (rev 85774)
+++ Zope/trunk/lib/python/Products/Five/browser/menu.py 2008-04-26 20:10:16 UTC (rev 85775)
@@ -15,13 +15,10 @@
$Id$
"""
-from zope.interface import implements
-from zope.app.publisher.interfaces.browser import IMenuAccessView
-from zope.app.publisher.browser.menu import getMenu
-from Products.Five import BrowserView
+import zope.deferredimport
-class MenuAccessView(BrowserView):
- implements(IMenuAccessView)
-
- def __getitem__(self, menu_id):
- return getMenu(menu_id, self.context, self.request)
+zope.deferredimport.deprecated(
+ "The Five specific view has been made obsolete. Please use the "
+ "view from zope.app.publisher directly.",
+ MenuAccessView = 'zope.app.publisher.browser.menu.MenuAccessView',
+ )
More information about the Zope-Checkins
mailing list