[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/services - registration.py:1.3
Jim Fulton
jim@zope.com
Mon, 30 Jun 2003 12:24:45 -0400
Update of /cvs-repository/Zope3/src/zope/app/interfaces/services
In directory cvs.zope.org:/tmp/cvs-serv18521/src/zope/app/interfaces/services
Modified Files:
registration.py
Log Message:
Added methods to support module lookup to registration manager
containers.
=== Zope3/src/zope/app/interfaces/services/registration.py 1.2 => 1.3 ===
--- 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 12:24:14 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.
+
"""