[Zope3-checkins] CVS: Zope3/src/zope/app/services - registration.py:1.5

Fred L. Drake, Jr. fred@zope.com
Tue, 1 Jul 2003 18:05:44 -0400


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

Modified Files:
	registration.py 
Log Message:
- add docstring
- normalize whitespace


=== Zope3/src/zope/app/services/registration.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/services/registration.py:1.4	Mon Jun 30 12:24:14 2003
+++ Zope3/src/zope/app/services/registration.py	Tue Jul  1 18:05:42 2003
@@ -107,10 +107,10 @@
 
     implements(interfaces.IRegistrationStack)
 
-    _data = ()
+    _data = ()  # tuple of strings (ivar)
 
     def _id(self, ob):
-
+        """Turn ob into a path relative to the site management folder."""
         # Get and check relative path
         path = zapi.getPath(ob)
         prefix = "/++etc++site/"
@@ -302,7 +302,7 @@
                       IAttributeAnnotatable,
                       )
 
-    
+
     status = RegistrationStatusProperty()
 
     # Methods from IRegistration
@@ -523,7 +523,7 @@
     # We want to use this key:
     #   key = "zope.app.services.registration.Registered"
     # But we have existing annotations with the following key, so we'll keep
-    # it. :( 
+    # it. :(
     key = "zope.app.services.configuration.UseConfiguration"
 
     addUsage = PathSetAnnotation.addPath
@@ -715,14 +715,14 @@
         manager = self.get(name+'.py')
         if manager is not None:
             # found an item with that name, make sure it's a module(manager):
-            if IModuleManager.isImplementedBy(manager):            
+            if IModuleManager.isImplementedBy(manager):
                 return manager.getModule()
 
         # Look for the module in this folder:
         manager = self.get(name)
         if manager is not None:
             # found an item with that name, make sure it's a module(manager):
-            if IModuleManager.isImplementedBy(manager):            
+            if IModuleManager.isImplementedBy(manager):
                 return manager.getModule()
 
 
@@ -735,9 +735,9 @@
         module = sys.modules.get(name)
         if module is not None:
             return module
-        
+
         raise ImportError(name)
-        
+
     findModule = zapi.ContextMethod(findModule)
 
     def resolve(self, name):