[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services/configuration - __init__.py:1.2
Jim Fulton
jim@zope.com
Sun, 23 Mar 2003 12:14:12 -0500
Update of /cvs-repository/Zope3/src/zope/app/browser/services/configuration
In directory cvs.zope.org:/tmp/cvs-serv5993/src/zope/app/browser/services/configuration
Modified Files:
__init__.py
Log Message:
added a site-management folder api to get the conguration manager
=== Zope3/src/zope/app/browser/services/configuration/__init__.py 1.1 => 1.2 ===
--- Zope3/src/zope/app/browser/services/configuration/__init__.py:1.1 Fri Mar 21 16:09:33 2003
+++ Zope3/src/zope/app/browser/services/configuration/__init__.py Sun Mar 23 12:13:41 2003
@@ -23,7 +23,6 @@
from zope.app.interfaces.services.configuration import Active, Registered
from zope.app.interfaces.services.configuration import IComponentConfiguration
from zope.app.interfaces.services.configuration import Unregistered
-from zope.app.interfaces.services.configuration import IConfigurationManager
from zope.app.interfaces.services.configuration import IUseConfiguration
from zope.app.pagetemplate.viewpagetemplatefile import ViewPageTemplateFile
from zope.app.traversing import getPath, traverse
@@ -250,14 +249,7 @@
# Get the configuration manager for this folder
folder = getWrapperContainer(component)
- for name in folder:
- item = folder[name]
- if IConfigurationManager.isImplementedBy(item):
- # We found one. Get it in context
- configure = traverse(folder, name)
- break
- else:
- raise SystemError("Couldn't find an configuration manager")
+ configure = folder.getConfigurationManager()
# Adapt to IZopeContainer, which takes care of generating
# standard events and calling standard hooks