[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services - service.py:1.17
Jim Fulton
jim@zope.com
Sun, 23 Mar 2003 17:03:58 -0500
Update of /cvs-repository/Zope3/src/zope/app/browser/services
In directory cvs.zope.org:/tmp/cvs-serv11562/src/zope/app/browser/services
Modified Files:
service.py
Log Message:
Changed the name of configuration managers created in site-management
folders to "ConfigurationManager".
Updated all code that accessed configuration managers to use
getConfigurationManager rather that traversing containers with
hardcoded names.
=== Zope3/src/zope/app/browser/services/service.py 1.16 => 1.17 ===
--- Zope3/src/zope/app/browser/services/service.py:1.16 Sun Mar 23 11:45:43 2003
+++ Zope3/src/zope/app/browser/services/service.py Sun Mar 23 17:03:27 2003
@@ -111,11 +111,10 @@
def action(self, name=[], active=[]):
path = getPath(self.context)
- configure = traverse(getWrapperContainer(self.context), 'configure')
+ configure = getWrapperContainer(self.context).getConfigurationManager()
container = getAdapter(configure, IZopeContainer)
for nm in name:
- # XXX Shouldn't hardcode 'configure'
sc = ServiceConfiguration(nm, path, self.context)
name = container.setObject("", sc)
sc = container[name]