[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/services - field.py:1.3.32.1 module.py:1.1.26.2 registration.py:1.2.8.1

Jim Fulton jim@zope.com
Mon, 30 Jun 2003 07:16:20 -0400


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

Modified Files:
      Tag: fdrake-local-modules-branch
	field.py module.py registration.py 
Log Message:
Checkpointing to branch. Will make detailed comments in merge.


=== Zope3/src/zope/app/interfaces/services/field.py 1.3 => 1.3.32.1 ===
--- Zope3/src/zope/app/interfaces/services/field.py:1.3	Fri Jan 10 14:38:48 2003
+++ Zope3/src/zope/app/interfaces/services/field.py	Mon Jun 30 07:15:50 2003
@@ -29,12 +29,6 @@
         basetype = None
         )
 
-class IComponentLocation(IComponentRelated, IField):
-    '''A field containing a component location.
-
-    This is as an absolute path, or as a dotted module name.'''
-
-
 class IComponentPath(IComponentRelated, IField):
     'A field containing a component path.'
 


=== Zope3/src/zope/app/interfaces/services/module.py 1.1.26.1 => 1.1.26.2 ===
--- Zope3/src/zope/app/interfaces/services/module.py:1.1.26.1	Sat Jun 28 10:44:03 2003
+++ Zope3/src/zope/app/interfaces/services/module.py	Mon Jun 30 07:15:50 2003
@@ -20,6 +20,7 @@
 """
 
 from zope.interface import Interface, Attribute
+from zope.schema import Bytes, BytesLine
 
 
 class IModuleManager(Interface):
@@ -36,9 +37,9 @@
         this method.
         """
 
-    name = Attribute("The module's name.")
+    name = BytesLine(title=u"The module's name.", readonly=True)
 
-    source = Attribute("The module's source code.")
+    source = Bytes(title=u"The module's source code.")
 
 
 class IModuleService(Interface):


=== Zope3/src/zope/app/interfaces/services/registration.py 1.2 => 1.2.8.1 ===
--- Zope3/src/zope/app/interfaces/services/registration.py:1.2	Sun Jun 22 10:02:20 2003
+++ Zope3/src/zope/app/interfaces/services/registration.py	Mon Jun 30 07:15:50 2003
@@ -406,13 +406,23 @@
 class IRegistrationManagerContainer(IContainer):
     """Containers with registration managers
 
-    The container provides clients to access the registration manager
+    These are site-management folders of one sort or another.
+
+    The container allows clients to access the registration manager
     without knowing it's name.
 
+    XXX at this point, it doesn't really make sense for regsitration
+    managers to be items.  It would probably be better to expose the
+    registrations as a separate tab.
+
     The container prevents deletion of the last registration manager.
+
     The container may allow more than one registration manager. If it
     has more than one, the one returned from an unnamed access is
-    undefined.
+    undefined. XXX the container should allow one and only one.
+
+    The registration manager container *also* supports local-module
+    lookup.
 
     """
 
@@ -425,6 +435,27 @@
         one, this method willl return one; which one is undefined.
 
         An error is raised if no registration manager can be found.
+        """
+
+    def findModule(name):
+        """Find the module of the given name
+
+        If the module can be find in the folder or a parent folder
+        (within the site manager), then return it, otherwise, delegate
+        to the module service.
+
+        """
+
+    def resolve(name):
+        """Resolve a dotted object name
+
+        A dotted opject nanem is a dotted module name and an object
+        name within the module.
+
+        XXX we really should switch to using some other character than
+        a dot for the delimiter between the module and the object
+        name.
+        
         """