[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services - service.py:1.28

Guido van Rossum guido@python.org
Thu, 12 Jun 2003 13:04:13 -0400


Update of /cvs-repository/Zope3/src/zope/app/browser/services
In directory cvs.zope.org:/tmp/cvs-serv25618/browser/services

Modified Files:
	service.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/browser/services/service.py 1.27 => 1.28 ===
--- Zope3/src/zope/app/browser/services/service.py:1.27	Thu Jun 12 05:31:42 2003
+++ Zope3/src/zope/app/browser/services/service.py	Thu Jun 12 13:03:42 2003
@@ -132,7 +132,7 @@
         return lst
 
     def action(self, name=[], active=[]):
-        path = zapi.getPath(self.context)
+        path = zapi.objectName(self.context)
         configure = zapi.getWrapperContainer(
             self.context).getConfigurationManager()
         container = zapi.getAdapter(configure, IZopeContainer)