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 @@
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"
/>
......
......@@ -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',
)
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