[Zope3-checkins] CVS: Zope3/src/zope/app/startup - bootstrap.py:1.18
Guido van Rossum
guido@python.org
Thu, 12 Jun 2003 13:03:46 -0400
Update of /cvs-repository/Zope3/src/zope/app/startup
In directory cvs.zope.org:/tmp/cvs-serv25618/startup
Modified Files:
bootstrap.py
Log Message:
Use/allow relative paths in ComponentConfiguration subclasses.
Existing absolute paths will continue to work, but all newly created
ComponentConfiguration subclass instances will use a path relative to
the site management folder containing the configured object -- i.e.,
this is just the object's name. Fixed all places where I've seen
absolute paths used. (Still to do: use relative paths for references
*to* the configuration object as well; these occur in registries, and
are also used by the IUseConfigurable machinery and by dependencies.)
=== Zope3/src/zope/app/startup/bootstrap.py 1.17 => 1.18 ===
--- Zope3/src/zope/app/startup/bootstrap.py:1.17 Wed Jun 4 10:57:57 2003
+++ Zope3/src/zope/app/startup/bootstrap.py Thu Jun 12 13:03:45 2003
@@ -121,8 +121,8 @@
package = traverse(root_folder, package_name)
configuration_manager = package.getConfigurationManager()
configuration = ServiceConfiguration(service_type,
- package_name + '/' + name,
- root_folder)
+ name,
+ configuration_manager)
key = configuration_manager.setObject("", configuration)
configuration = traverseName(configuration_manager, key)
configuration.status = initial_status