[Zope3-checkins] CVS: Zope3/src/zope/app/services - menu.py:1.3
Stephan Richter
srichter at cosmos.phy.tufts.edu
Sat Aug 16 12:32:44 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/services
In directory cvs.zope.org:/tmp/cvs-serv1528/services
Modified Files:
menu.py
Log Message:
Fixed the two test failures reported in the nightly tests for Python2.2.
=== Zope3/src/zope/app/services/menu.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/services/menu.py:1.2 Fri Aug 15 20:44:08 2003
+++ Zope3/src/zope/app/services/menu.py Sat Aug 16 11:32:40 2003
@@ -15,6 +15,8 @@
$Id$
"""
+__metaclass__ = type
+
from persistence import Persistent
from zope.app import zapi
from zope.app.component.nextservice import getNextService
@@ -189,14 +191,14 @@
def getMenu(self, menu_id, object, request, max=999999):
"""See zope.app.interfaces.publisher.browser.IBrowserMenuService"""
- return super(LocalBrowserMenuService,
+ return zapi.ContextSuper(LocalBrowserMenuService,
self).getMenu(menu_id, object, request, max)
getMenu = ContextMethod(getMenu)
def getFirstMenuItem(self, menu_id, object, request):
"""See zope.app.interfaces.publisher.browser.IBrowserMenuService"""
- return super(LocalBrowserMenuService,
+ return zapi.ContextSuper(LocalBrowserMenuService,
self).getFirstMenuItem(menu_id, object, request)
getFirstMenuItem = ContextMethod(getFirstMenuItem)
More information about the Zope3-Checkins
mailing list