Commit d261f268 authored by Hanno Schlichting's avatar Hanno Schlichting

Found another class which is exactly the same now as the one in Zope3.

parent daf20aa7
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
for="*" for="*"
name="view_get_menu" name="view_get_menu"
permission="zope.Public" permission="zope.Public"
class=".menu.MenuAccessView" class="zope.app.publisher.browser.menu.MenuAccessView"
allowed_interface="zope.app.publisher.interfaces.browser.IMenuAccessView" allowed_interface="zope.app.publisher.interfaces.browser.IMenuAccessView"
/> />
......
...@@ -15,13 +15,10 @@ ...@@ -15,13 +15,10 @@
$Id$ $Id$
""" """
from zope.interface import implements import zope.deferredimport
from zope.app.publisher.interfaces.browser import IMenuAccessView
from zope.app.publisher.browser.menu import getMenu
from Products.Five import BrowserView
class MenuAccessView(BrowserView): zope.deferredimport.deprecated(
implements(IMenuAccessView) "The Five specific view has been made obsolete. Please use the "
"view from zope.app.publisher directly.",
def __getitem__(self, menu_id): MenuAccessView = 'zope.app.publisher.browser.menu.MenuAccessView',
return getMenu(menu_id, self.context, self.request) )
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment