[Zope3-checkins] CVS: Zope3/src/zope/app/browser/container - adding.py:1.11

Steve Alexander steve@cat-box.net
Thu, 5 Jun 2003 08:42:24 -0400


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

Modified Files:
	adding.py 
Log Message:
ZopeContainerAdapter is now no longer used in unit tests.



=== Zope3/src/zope/app/browser/container/adding.py 1.10 => 1.11 ===
--- Zope3/src/zope/app/browser/container/adding.py:1.10	Tue May 27 10:18:06 2003
+++ Zope3/src/zope/app/browser/container/adding.py	Thu Jun  5 08:41:53 2003
@@ -33,10 +33,11 @@
 from zope.publisher.interfaces import IPublishTraverse
 
 from zope.app.i18n import ZopeMessageIDFactory as _
+from zope.interface import implements
 
 class Adding(BrowserView):
 
-    __implements__ =  IAdding, IPublishTraverse
+    implements(IAdding, IPublishTraverse)
 
     menu_id = "add_content"
 
@@ -106,7 +107,7 @@
     def action(self, type_name='', id=''):
         if not type_name:
             raise UserError(_(u"You must select the type of object to add."))
-        
+
         if type_name.startswith('@@'):
             type_name = type_name[2:]