[Zope3-checkins] CVS: Zope3/src/zope/app/browser - managementviewselector.py:1.3 menu.py:1.3 onlinehelp.py:1.7 undo.py:1.4
Philipp von Weitershausen
philikon@philikon.de
Fri, 6 Jun 2003 17:35:46 -0400
Update of /cvs-repository/Zope3/src/zope/app/browser
In directory cvs.zope.org:/tmp/cvs-serv27561
Modified Files:
managementviewselector.py menu.py onlinehelp.py undo.py
Log Message:
New interface declaration.
=== Zope3/src/zope/app/browser/managementviewselector.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/browser/managementviewselector.py:1.2 Wed Dec 25 09:12:26 2002
+++ Zope3/src/zope/app/browser/managementviewselector.py Fri Jun 6 17:35:15 2003
@@ -17,6 +17,7 @@
__metaclass__ = type
+from zope.interface import implements
from zope.component import getService
from zope.publisher.browser import BrowserView
from zope.publisher.interfaces.browser import IBrowserPublisher
@@ -25,7 +26,7 @@
"""View that selects the first available management view
"""
- __implements__ = BrowserView.__implements__, IBrowserPublisher
+ implements(IBrowserPublisher)
def browserDefault(self, request):
return self, ()
=== Zope3/src/zope/app/browser/menu.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/browser/menu.py:1.2 Wed Dec 25 09:12:26 2002
+++ Zope3/src/zope/app/browser/menu.py Fri Jun 6 17:35:15 2003
@@ -15,6 +15,7 @@
$Id$
"""
+from zope.interface import implements
from zope.publisher.browser import BrowserView
from zope.app.interfaces.browser.menu import IMenuAccessView
from zope.component import getService
@@ -22,7 +23,7 @@
class MenuAccessView(BrowserView):
__doc__ = IMenuAccessView.__doc__
- __implements__ = BrowserView.__implements__, IMenuAccessView
+ implements(IMenuAccessView)
def __getitem__(self, menu_id):
context = self.context
=== Zope3/src/zope/app/browser/onlinehelp.py 1.6 => 1.7 ===
--- Zope3/src/zope/app/browser/onlinehelp.py:1.6 Sun Jun 1 11:59:25 2003
+++ Zope3/src/zope/app/browser/onlinehelp.py Fri Jun 6 17:35:15 2003
@@ -15,7 +15,7 @@
$Id$
"""
-from zope.interface.implements import flattenInterfaces
+from zope.interface import providedBy
from zope.component import getService, getView
from zope.publisher.browser import BrowserView
@@ -57,7 +57,7 @@
view = self.context
obj = view.context
help = getService(obj, 'OnlineHelp')
- ifaces = flattenInterfaces(removeAllProxies(obj.__implements__))
+ ifaces = providedBy(obj).flattened()
topics = []
for klass in view.__class__.__bases__ + (view.__class__, None):
for iface in ifaces:
=== Zope3/src/zope/app/browser/undo.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/browser/undo.py:1.3 Mon Jan 20 14:58:57 2003
+++ Zope3/src/zope/app/browser/undo.py Fri Jun 6 17:35:15 2003
@@ -16,6 +16,7 @@
Revision information:
$Id$
"""
+from zope.interface import implements
from zope.component import getUtility
from zope.publisher.browser import BrowserView
from zope.app.pagetemplate.viewpagetemplatefile import ViewPageTemplateFile
@@ -26,7 +27,7 @@
"""Implement the basic undo management api for a single ZODB database.
"""
- __implements__ = IUndoManager
+ implements(IUndoManager)
def __init__(self, db):
self.__db = db