[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services - service.py:1.6.2.4
Guido van Rossum
guido@python.org
Mon, 3 Mar 2003 12:05:12 -0500
Update of /cvs-repository/Zope3/src/zope/app/browser/services
In directory cvs.zope.org:/tmp/cvs-serv638/src/zope/app/browser/services
Modified Files:
Tag: use-config-branch
service.py
Log Message:
Properly fix the failure of test_addservicecontainer.py.
Turns out that in zope/app/browser/services/service.py, we need to use
self.context.context as the context passed to ServiceConfiguration().
=== Zope3/src/zope/app/browser/services/service.py 1.6.2.3 => 1.6.2.4 ===
--- Zope3/src/zope/app/browser/services/service.py:1.6.2.3 Thu Feb 27 20:43:28 2003
+++ Zope3/src/zope/app/browser/services/service.py Mon Mar 3 12:04:40 2003
@@ -182,7 +182,8 @@
return paths
def action(self, service_type, component_path):
- sd = ServiceConfiguration(service_type, component_path, self.request)
+ sd = ServiceConfiguration(service_type, component_path,
+ self.context.context)
sd = self.context.add(sd)
getWidgetsDataForContent(self, IConfiguration, sd, strict=False)
self.request.response.redirect(self.context.nextURL())