[Zope3-checkins] CVS: Zope3/src/zope/app/services - configuration.py:1.18 pagefolder.py:1.3
Jim Fulton
jim@zope.com
Sun, 23 Mar 2003 17:03:59 -0500
Update of /cvs-repository/Zope3/src/zope/app/services
In directory cvs.zope.org:/tmp/cvs-serv11562/src/zope/app/services
Modified Files:
configuration.py pagefolder.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/services/configuration.py 1.17 => 1.18 ===
--- Zope3/src/zope/app/services/configuration.py:1.17 Sun Mar 23 14:24:46 2003
+++ Zope3/src/zope/app/services/configuration.py Sun Mar 23 17:03:28 2003
@@ -617,7 +617,7 @@
def __init__(self):
super(ConfigurationManagerContainer, self).__init__()
- self.setObject('configure', ConfigurationManager())
+ self.setObject('ConfigurationManager', ConfigurationManager())
def __delitem__(self, name):
"""Delete an item, but not if it's the last configuration manager
=== Zope3/src/zope/app/services/pagefolder.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/services/pagefolder.py:1.2 Sun Mar 23 14:24:46 2003
+++ Zope3/src/zope/app/services/pagefolder.py Sun Mar 23 17:03:28 2003
@@ -69,7 +69,7 @@
template=template,
layer=self.layer,
)
- configure = traverse(self, 'configure')
+ configure = self.getConfigurationManager()
id = configure.setObject('', config)
config = getItem(configure, id)
config.status = Active