[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services - service.py:1.4

Steve Alexander steve@cat-box.net
Mon, 3 Feb 2003 11:36:05 -0500


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

Modified Files:
	service.py 
Log Message:
Needed to use ContextSuper rather than super because this mix-in was
used when the ContextAware mix-in was used.

I need to write a note somewhere about the need to use ContextSuper when
using the ContextAware mix-in.


=== Zope3/src/zope/app/browser/services/service.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/browser/services/service.py:1.3	Tue Dec 31 08:14:31 2002
+++ Zope3/src/zope/app/browser/services/service.py	Mon Feb  3 11:36:02 2003
@@ -18,7 +18,7 @@
 
 from zope.app.browser.container.adding import Adding as ContentAdding
 from zope.component import getView, getAdapter
-from zope.proxy.context import ContextWrapper
+from zope.proxy.context import ContextWrapper, ContextSuper
 from zope.app.interfaces.container import IZopeContainer
 from zope.component import getServiceManager
 from zope.publisher.browser import BrowserView
@@ -43,7 +43,7 @@
                 while ("%s-%s" % (id, i)) in self.context:
                     i=i+1
                 id = "%s-%s" % (id, i)
-        return super(ComponentAdding, self).action(type_name, id)
+        return ContextSuper(ComponentAdding, self).action(type_name, id)
 
 class ConfigurationAdding(ContentAdding):
     """Adding component for configuration