[Zope3-checkins] CVS: Zope3/src/zope/app/browser - objectname.py:1.5

Steve Alexander steve@cat-box.net
Wed, 4 Jun 2003 07:14:17 -0400


Update of /cvs-repository/Zope3/src/zope/app/browser
In directory cvs.zope.org:/tmp/cvs-serv14850/src/zope/app/browser

Modified Files:
	objectname.py 
Log Message:
new style implements()


=== Zope3/src/zope/app/browser/objectname.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/browser/objectname.py:1.4	Wed Apr 30 19:37:48 2003
+++ Zope3/src/zope/app/browser/objectname.py	Wed Jun  4 07:13:47 2003
@@ -17,12 +17,12 @@
 $Id$
 """
 from zope.publisher.interfaces.browser import IBrowserView
-from zope.app.interfaces.traversing import IObjectName
 from zope.app.traversing.adapters import ObjectName, SiteObjectName
+from zope.interface import implements
 
 class ObjectNameView(ObjectName):
 
-    __implements__ = IBrowserView, IObjectName
+    implements(IBrowserView)
 
     def __init__(self, context, request):
         self.context = context
@@ -30,7 +30,7 @@
 
 class SiteObjectNameView(SiteObjectName):
 
-    __implements__ = IBrowserView, IObjectName
+    implements(IBrowserView)
 
     def __init__(self, context, request):
         pass